diff --git a/homeassistant/helpers/entity.py b/homeassistant/helpers/entity.py index 41fe362ece3..b80e244cb8a 100644 --- a/homeassistant/helpers/entity.py +++ b/homeassistant/helpers/entity.py @@ -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 "_"