forked from home-assistant/core
Set Switchbot _attr_is_closed on init (#56611)
* self._attr_is_closed needs to be set initially. * Set _attr_is_closed on init.
This commit is contained in:
@@ -77,6 +77,7 @@ class SwitchBotCurtainEntity(SwitchbotEntity, CoverEntity, RestoreEntity):
|
||||
"""Initialize the Switchbot."""
|
||||
super().__init__(coordinator, idx, mac, name)
|
||||
self._attr_unique_id = idx
|
||||
self._attr_is_closed = None
|
||||
self._device = device
|
||||
|
||||
async def async_added_to_hass(self) -> None:
|
||||
|
Reference in New Issue
Block a user