Sync fibaro entity visible state (#72379)
parent
dd5b1681e7
commit
c10a523055
|
@ -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."""
|
||||
|
|
Loading…
Reference in New Issue