Fix missing EntityDescription names in Overkiz (#95583)

* Fix labels

* Update homeassistant/components/overkiz/entity.py

* Check if description.name is string

---------

Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>
This commit is contained in:
Mick Vleeshouwer
2023-07-01 05:59:01 +02:00
committed by GitHub
parent 3fbc026d5a
commit 8b159d0f47

View File

@@ -119,3 +119,5 @@ class OverkizDescriptiveEntity(OverkizEntity):
# In case of sub device, use the provided label
# and append the name of the type of entity
self._attr_name = f"{self.device.label} {description.name}"
elif isinstance(description.name, str):
self._attr_name = description.name