mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 18:18:21 +00:00
Fix BroadlinkSwitch._attr_assumed_state (#55505)
This commit is contained in:
parent
05cf223146
commit
22f745b17c
@ -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