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