Commit graph

316 commits

Author SHA1 Message Date
Jc2k
c11a462f51
Clean up homekit_controller entity setup () 2020-03-10 12:06:44 +01:00
Jc2k
19faf06ce7
homekit_controller fixes from testing with an LG TV: ()
* Bump aiohomekit to get better reconnection handling and cleaner shutdowns.
 * Read the ACTIVE characteristic and set ok/problem state

Also gets test coverage to 100%.
2020-03-09 12:19:17 -04:00
Jc2k
2879081772
Implement source switching for homekit_controller televisions () 2020-03-06 15:47:40 +00:00
Jc2k
007d934214
Initial support for HomeKit enabled televisions ()
* Initial support for HomeKit enabled televisions

* Fix nit from review
2020-03-05 13:49:56 +00:00
springstan
f1a0ca7cd3
Add and use percentage constant ()
* Add and use percentage constant

* Fix pylint error and broken test
2020-02-28 11:46:48 -08:00
springstan
157f972d72
Use f-strings in integrations starting with "H" - "L" ()
* Use f-strings in integrations starting with "H"

* Use f-strings in integrations starting with "I"

* Use f-strings in integrations starting with "J"

* Use f-strings in integrations starting with "K"

* Use f-strings in integrations starting with "L"

* Fix lint error

* Use join instead of f-string in homekit_controller

* Use local variables with f-strings

* Fix lint error

* Escape the characters in f-string

* Sort imports with isort in homeworks light

* Fix pylint error

* Fix broken tests

* Fix broken tests v2
2020-02-28 12:39:29 +01:00
Jc2k
d207c37c33
Address homekit_controller feedback on and () 2020-02-26 17:10:05 -08:00
Jc2k
853d6cda25
Make homekit_controller a local push integration () 2020-02-26 10:35:53 -08:00
Jc2k
92a47f14bb
homekit_controller test cleanups () 2020-02-26 09:44:04 -08:00
Jc2k
4a89fba6f9
Add homekit_controller occupancy sensor () 2020-02-25 22:01:03 +00:00
Jc2k
dd13e99967
Add missing device class attributes to homekit_controller sensors ()
* Add some missing device class attributes to homekit_controller sensors

* Add classes for binary sensors
2020-02-25 21:43:14 +01:00
Jc2k
438c4acf07
Deprecate homekit_controller .homekit folder ()
* homekit_controller: Deprecate .homekit folder

* Tweaks from review

* Delay it a release
2020-02-25 12:09:04 +01:00
Jc2k
c9d78aa78c
Refactor homekit_controller config flow tests ()
* Config flow test refactor

* Add a service and characteristic to the accessory so its more realistic

* Feedback from review

* Missing apostrophe
2020-02-25 12:06:35 +01:00
Ville Skyttä
496bd3dddf
Add and use more unit constants ()
* Add and use speed constants

* Add and use meter based volume and area constants

* Add and use more mass unit constants

* Add and use concentration unit constants

* Add and use watts per square meter constant

* Use more time constants

* Use more data constants
2020-02-24 17:52:14 -08:00
Jc2k
df9363610c
Refactor homekit_controller to be fully asynchronous ()
* Port homekit_controller to aiohomekit

* Remove succeed() test helper

* Remove fail() test helper
2020-02-24 10:55:33 +01:00
HomeAssistant Azure
2e5161997f [ci skip] Translation update 2020-02-18 00:31:41 +00:00
HomeAssistant Azure
84e4ef510e [ci skip] Translation update 2020-02-17 00:31:56 +00:00
HomeAssistant Azure
f3a8196fb5 [ci skip] Translation update 2020-02-15 00:31:45 +00:00
Paulus Schoutsen
e019280d94
Annotate more async functions correctly () 2020-02-14 10:00:22 -08:00
HomeAssistant Azure
32bc94bdd6 [ci skip] Translation update 2020-02-14 00:31:49 +00:00
Franck Nijhof
0173c61fee
Spelling: Config(uration) () 2020-02-13 08:27:00 -08:00
HomeAssistant Azure
40e866a5bb [ci skip] Translation update 2020-02-13 00:31:46 +00:00
HomeAssistant Azure
118ba10442 [ci skip] Translation update 2020-02-10 00:31:37 +00:00
HomeAssistant Azure
a2bea2cab8 [ci skip] Translation update 2020-02-09 00:31:39 +00:00
HomeAssistant Azure
5483de7e25 [ci skip] Translation update 2020-02-08 00:31:45 +00:00
Christian Clauss
df7d2b3aeb
Fix typos found by codespell ()
* Fix typos found by codespell

* Fix typos found by codespell

* codespell: Furture  ==> Future

* Update test_config_flow.py

* Update __init__.py

* Spellcheck: successfull  ==> successful

* Codespell: unsuccesful  ==> unsuccessful

* Codespell: cant  ==> can't

* Codespell: firware ==> firmware

* Codespell: mimick  ==> mimic
2020-01-31 08:33:00 -08:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ()
* Fix callback and async

* Fix a return

* Fix test

* Fix mqtt tests

* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Franck Nijhof
fb35d382e1
Remove all empty *_setup_platform() from integrations ()
* Remove all empty *_setup_platform() from integrations

* Fix tests for smartthings

* Fix tests for heos
2020-01-21 12:38:38 +01:00
HomeAssistant Azure
0534153ae7 [ci skip] Translation update 2020-01-13 00:31:54 +00:00
HomeAssistant Azure
d6512c8a9f [ci skip] Translation update 2020-01-11 00:31:55 +00:00
Franck Nijhof
345cc244ed
Correct names in manifests (C-L) () 2020-01-07 08:19:17 +01:00
Franck Nijhof
a84741392b
Format all manifests with prettier () 2020-01-06 21:28:23 +01:00
Jc2k
8257ea30c0 Set required_features field when registering fan services ()
* Set required_features on fan services

* Fix mqtt fan test

* Update fan.py
2020-01-06 17:10:51 +01:00
Jc2k
a58c796641 Add support for homekit air quality sensors ()
* Add air quality sensor

* Fix comment from review

* Fix comment from review

* Lint fix
2020-01-06 16:35:10 +01:00
Jc2k
fffc5a5fbb Add support for v1 and v2 HomeKit fans. ()
* Add support for v1 and v2 HomeKit fans.

* Lint fix
2020-01-05 15:56:46 +01:00
Ville Skyttä
5216477353
Be consistent with Home Assistant and Hass.io spelling ()
* Be consistent with Home Assistant spelling

* Be consistent with Hass.io spelling
2020-01-05 14:09:17 +02:00
Jc2k
80701c8f2a Defer homekit_controller initial poll after all entities are created ()
* Make sure first poll happens after sub-platforms are loaded and entities are created.

* Function dosn't need to return anything

* Don't forward entry if already forwarded it
2020-01-03 21:22:27 +01:00
Jc2k
fccb13b762
Add homekit_controller service.sensor.smoke () 2019-12-30 08:05:49 +00:00
Jc2k
8a22a38353
Accept homekit_controller pairing codes both with and without dashes ()
* Handle MalformedPinError from homekit_python
* Handle both formats of pin codes
2019-12-30 07:36:01 +00:00
HomeAssistant Azure
13116d8d3f [ci skip] Translation update 2019-12-30 00:32:19 +00:00
Jc2k
b41480ae46 Add a config entry mechanism to rediscover a discovery that was ignored ()
* Mechanism to rediscover a discovery that was ignored

* Add core config entry tests for new rediscover step

* Add tests for homekit_controller implementation of async_step_rediscover

* Rename rediscover to unignore

* Comment the new ignore/unignore mechanisms
2019-12-21 11:22:07 +01:00
Jc2k
c3144eddbb Set unique id on homekit_controller config entries ()
* Set unique id on config entries

* Changes from review
2019-12-19 09:45:22 +01:00
springstan
3b5da9c44a Move imports to top for homekit_controller ()
* Move imports to top for homekit_controller

* Fix IpPairing mock in two test files
2019-12-08 16:50:57 +00:00
HomeAssistant Azure
a1a131334a [ci skip] Translation update 2019-12-04 00:32:11 +00:00
Ville Skyttä
99c7608fb4 Lint config cleanups ()
* Remove bunch of unneeded lint exclusions

* Use symbolic names instead of identifiers in pylint disables

* Tighten scope of some pylint disables
2019-11-25 22:40:08 -08:00
SukramJ
1fde0d18ed Add supported_features to Alarm Control Panel to limit device_actions ()
* Add supported_features to Alarm Control Panel

* mark supported_features abstract

* Add SF to async_register_entity_service

* fix test

* Add missing SF SUPPORT_ALARM_ARM_CUSTOM_BYPASS

* isort

* fix async_register_entity_service

* Update alarm_control_panel.py
2019-11-25 15:42:53 -08:00
Ville Skyttä
d88ca0f5cb Lint exclusions ()
* Remove malformed pylint disable markers

* Remove some unused imports

* Remove some unneeded lint exclusions

* Remove more unneeded lint exclusions

* Add specific codes to all noqa's
2019-11-16 10:22:07 +01:00
HomeAssistant Azure
08d662c0a5 [ci skip] Translation update 2019-11-14 00:32:16 +00:00
GaryOkie
a9a1c2b91d Update Homekit climate.py to remap current mode ()
* Update Homekit climate.py to remap current mode

This update changes the mapping of Homekit's Current Mode Heating/Cooling State  to show the HASS Hvac_action attribute as "idle" instead of "off" when the returned value is 0.

* Update climate.py

removed imported constant no longer being used  (CURRENT_HVAC_OFF)

* corrected update to climate.py

trying again to remove unused constant.

* Update test_climate.py

* removed "change" comment

The added comment describing the change was not needed and should not be included, as it will already be described via "git annotate"  (per @jc2k)
2019-11-12 00:35:09 +01:00
HomeAssistant Azure
d8e3255603 [ci skip] Translation update 2019-10-15 00:31:44 +00:00