mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 22:37:11 +00:00
Fix comment
This commit is contained in:
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,"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user