Add support for alarm system, switch and thermostat to homekit (#12819)

* Added support for security system, switch and thermostat
* Processing review
* Only perform set call when the call didn't come from HomeKit
* Added support for alarm_code
* Take into account review remarks
* Provide tests for HomeKit security systems, switches and thermostats
* Support STATE_AUTO
* Guard if state exists
* Improve support for thermostat auto mode
* Provide both high and low at the same time for home assistant
* Set default values within accepted ranges
* Added tests for auto mode
* Fix thermostat test error
* Use attributes.get instead of indexing for safety
* Avoid hardcoded attributes in tests
This commit is contained in:
maxclaey 2018-03-07 13:17:52 +01:00 committed by cdce8p
parent 35bae1eef2
commit 4218b31e7b
9 changed files with 775 additions and 2 deletions

View file

@ -95,7 +95,10 @@ IGNORE_PACKAGES = (
'homeassistant.components.recorder.models',
'homeassistant.components.homekit.accessories',
'homeassistant.components.homekit.covers',
'homeassistant.components.homekit.sensors'
'homeassistant.components.homekit.security_systems',
'homeassistant.components.homekit.sensors',
'homeassistant.components.homekit.switches',
'homeassistant.components.homekit.thermostats'
)
IGNORE_PIN = ('colorlog>2.1,<3', 'keyring>=9.3,<10.0', 'urllib3')