Remove unnecessary assert from Entity (#94711)
This commit is contained in:
parent
92bba4d7be
commit
950b25bf42
1 changed files with 0 additions and 1 deletions
|
@ -380,7 +380,6 @@ class Entity(ABC):
|
|||
|
||||
def _device_class_name(self) -> str | None:
|
||||
"""Return a translated name of the entity based on its device class."""
|
||||
assert self.platform
|
||||
if not self.has_entity_name:
|
||||
return None
|
||||
device_class_key = self.device_class or "_"
|
||||
|
|
Loading…
Add table
Reference in a new issue