Sync fibaro entity visible state (#72379)

pull/72713/head
rappenze 2022-05-30 15:53:57 +02:00 committed by GitHub
parent dd5b1681e7
commit c10a523055
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -490,6 +490,9 @@ class FibaroDevice(Entity):
self.ha_id = fibaro_device.ha_id
self._attr_name = fibaro_device.friendly_name
self._attr_unique_id = fibaro_device.unique_id_str
# propagate hidden attribute set in fibaro home center to HA
if "visible" in fibaro_device and fibaro_device.visible is False:
self._attr_entity_registry_visible_default = False
async def async_added_to_hass(self):
"""Call when entity is added to hass."""