Fix spelling schedule_update_ha_state (#4415)
This commit is contained in:
parent
1fff6ce438
commit
f006b00dc1
15 changed files with 29 additions and 29 deletions
|
@ -117,7 +117,7 @@ class MqttSwitch(SwitchDevice):
|
|||
if self._optimistic:
|
||||
# Optimistically assume that switch has changed state.
|
||||
self._state = True
|
||||
self.shedule_update_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
def turn_off(self, **kwargs):
|
||||
"""Turn the device off."""
|
||||
|
@ -126,4 +126,4 @@ class MqttSwitch(SwitchDevice):
|
|||
if self._optimistic:
|
||||
# Optimistically assume that switch has changed state.
|
||||
self._state = False
|
||||
self.shedule_update_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue