Improved upgradeability HomeKit security_systems (#13783)
This commit is contained in:
parent
2b86059fd0
commit
ae4e792651
1 changed files with 9 additions and 11 deletions
|
@ -67,9 +67,7 @@ class SecuritySystem(HomeAccessory):
|
||||||
return
|
return
|
||||||
|
|
||||||
hass_state = new_state.state
|
hass_state = new_state.state
|
||||||
if hass_state not in HASS_TO_HOMEKIT:
|
if hass_state in HASS_TO_HOMEKIT:
|
||||||
return
|
|
||||||
|
|
||||||
current_security_state = HASS_TO_HOMEKIT[hass_state]
|
current_security_state = HASS_TO_HOMEKIT[hass_state]
|
||||||
self.char_current_state.set_value(current_security_state)
|
self.char_current_state.set_value(current_security_state)
|
||||||
_LOGGER.debug('%s: Updated current state to %s (%d)',
|
_LOGGER.debug('%s: Updated current state to %s (%d)',
|
||||||
|
|
Loading…
Add table
Reference in a new issue