mirror of
https://github.com/home-assistant/core.git
synced 2025-08-04 21:25:13 +02:00
Fix telnet fast state update (#59681)
This commit is contained in:
@@ -157,9 +157,11 @@ class TelnetSwitch(SwitchEntity):
|
||||
self._telnet_command(self._command_on)
|
||||
if self.assumed_state:
|
||||
self._state = True
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
def turn_off(self, **kwargs):
|
||||
"""Turn the device off."""
|
||||
self._telnet_command(self._command_off)
|
||||
if self.assumed_state:
|
||||
self._state = False
|
||||
self.schedule_update_ha_state()
|
||||
|
Reference in New Issue
Block a user