mirror of
https://github.com/home-assistant/core.git
synced 2025-07-14 16:57:10 +00:00
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:
parent
8aff51042b
commit
3c80e05100
@ -77,6 +77,7 @@ class SwitchBotCurtainEntity(SwitchbotEntity, CoverEntity, RestoreEntity):
|
|||||||
"""Initialize the Switchbot."""
|
"""Initialize the Switchbot."""
|
||||||
super().__init__(coordinator, idx, mac, name)
|
super().__init__(coordinator, idx, mac, name)
|
||||||
self._attr_unique_id = idx
|
self._attr_unique_id = idx
|
||||||
|
self._attr_is_closed = None
|
||||||
self._device = device
|
self._device = device
|
||||||
|
|
||||||
async def async_added_to_hass(self) -> None:
|
async def async_added_to_hass(self) -> None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user