mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 17:57:11 +00:00
Fix BroadlinkSwitch._attr_assumed_state (#55505)
This commit is contained in:
parent
343054494c
commit
3bc58f9750
@ -142,9 +142,6 @@ class BroadlinkSwitch(BroadlinkEntity, SwitchEntity, RestoreEntity, ABC):
|
|||||||
super().__init__(device)
|
super().__init__(device)
|
||||||
self._command_on = command_on
|
self._command_on = command_on
|
||||||
self._command_off = command_off
|
self._command_off = command_off
|
||||||
|
|
||||||
self._attr_assumed_state = True
|
|
||||||
self._attr_device_class = DEVICE_CLASS_SWITCH
|
|
||||||
self._attr_name = f"{device.name} Switch"
|
self._attr_name = f"{device.name} Switch"
|
||||||
|
|
||||||
async def async_added_to_hass(self):
|
async def async_added_to_hass(self):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user