Fix spelling schedule_update_ha_state (#4415)
This commit is contained in:
1 parent
1fff6ce438
commit
f006b00dc1
15 files changed
+29
-29
No files matched your search
@@ -127,11 +127,11 @@ class PilightSwitch(SwitchDevice):
|
||||
self._hass.services.call(pilight.DOMAIN, pilight.SERVICE_NAME,
|
||||
self._code_on, blocking=True)
|
||||
self._state = True
|
||||
self.shedule_update_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
|
||||
def turn_off(self):
|
||||
"""Turn the switch on by calling pilight.send service with off code."""
|
||||
self._hass.services.call(pilight.DOMAIN, pilight.SERVICE_NAME,
|
||||
self._code_off, blocking=True)
|
||||
self._state = False
|
||||
self.shedule_update_ha_state()
|
||||
self.schedule_update_ha_state()
|
||||
Reference in new issue
Block a user