forked from home-assistant/core
Fix comment
This commit is contained in:
committed by
Franck Nijhof
parent
43fbb2ab7b
commit
6fe2612f1d
@@ -973,7 +973,8 @@ class Entity(
|
|||||||
if self.hass is None:
|
if self.hass is None:
|
||||||
raise RuntimeError(f"Attribute hass is None for {self}")
|
raise RuntimeError(f"Attribute hass is None for {self}")
|
||||||
|
|
||||||
# Break if entity is not loaded using EntityComponent, introduced in 2025.1
|
# Break if entity is not loaded using EntityComponent
|
||||||
|
# behavior changed from logging in in 2025.1
|
||||||
if self.platform is None:
|
if self.platform is None:
|
||||||
report_usage( # type: ignore[unreachable]
|
report_usage( # type: ignore[unreachable]
|
||||||
f"Entity {self.entity_id} ({type(self)}) does not have a platform,"
|
f"Entity {self.entity_id} ({type(self)}) does not have a platform,"
|
||||||
|
Reference in New Issue
Block a user