Commit Graph

73 Commits (284893d9423d0f85030c06c54b9465374430c70d)

Author SHA1 Message Date
Jc2k eb0828efdb
Dont rely on config flow to monitor homekit_controller c# changes (#76861) 2022-08-20 10:58:59 -10:00
Jc2k a663445f25
Bump aiohomekit to 1.3.0 (#76841) 2022-08-16 10:34:17 +01:00
J. Nick Koston 63b454c9ed
BLE pairing reliablity fixes for HomeKit Controller (#76199)
- Remove the cached map from memory when unpairing so
  we do not reuse it again if they unpair/repair

- Fixes for accessories that use a config number of
  0

- General reliablity improvements to the pairing process
  under the hood of aiohomekit
2022-08-04 16:38:55 +01:00
Jc2k d5695a2d86
Fix some homekit_controller pylint warnings and (local only) test failures (#76122) 2022-08-04 11:30:37 +01:00
J. Nick Koston 80a9659524
Update to bleak 0.15 (#75941) 2022-07-29 17:53:33 -07:00
J. Nick Koston 8d63f81821
Add bluetooth discovery to HomeKit Controller (#75333)
Co-authored-by: Jc2k <john.carr@unrouted.co.uk>
2022-07-17 08:19:05 -05:00
J. Nick Koston b9c8d65940
Restore accessory state into pairing using new HKC methods (#75276) 2022-07-16 12:49:15 -05:00
J. Nick Koston 97fd669924
HomeKit Controller BLE Fixes (#75271) 2022-07-15 10:44:25 -05:00
J. Nick Koston a31dde9cb4
Await startup in homekit controller (#75021) 2022-07-14 07:44:27 -05:00
Jc2k 59170d3c54
Prepare homekit_controller for _hap._udp.local. (#74857)
* Prepare homekit_controller for _hap._udp.local.
2022-07-10 19:50:54 +01:00
Jc2k f53bf1127f
Hide homekit_controller implementation that doesn't apply to BLE (#74836) 2022-07-09 23:07:32 +02:00
epenet 4978d5f86e
Cleanup deprecated async_get_registry in homekit_controller (#72069) 2022-05-18 14:21:56 +02:00
J. Nick Koston c73cf2cf50
Fix race during homekit controller pairing (#69948) 2022-04-14 09:57:36 -07:00
Jc2k 40c6832cc1
Update homekit_controller to use the new typed discovery data (#66462) 2022-02-13 12:45:30 -06:00
Jc2k b8a8485e91
Replace use of deprecated APIs in aiohomekit (#66409) 2022-02-12 23:17:55 -06:00
Jc2k 95e4ea8fcd
Simplify the homekit_controller unignore journey (#66353) 2022-02-12 13:16:05 +00:00
Joshua Roys 9134e5c844
Get discovered zeroconf IPv6 addresses (#65462) 2022-02-11 16:46:17 -06:00
Jc2k 0daf20c0cc
Prepare for new aiohomekit lifecycle API (#66340) 2022-02-11 19:26:35 +00:00
Jc2k 9f5d77e0df
Add missing type hints to homekit_controller (#65368) 2022-02-01 13:30:37 -06:00
Jc2k dd5bcafab7
Enable mypy checks for homekit_controller (#65358) 2022-02-01 11:27:35 +00:00
Jc2k cc94af2872
Remove deprecated helper functions from homekit_controller pairing flow (#65270) 2022-01-30 16:20:19 -06:00
J. Nick Koston ef5e5c3f96
Dismiss existing discoveries when a HomeKit device is paired (#62632) 2021-12-22 19:40:36 -10:00
epenet 0d24862a28
Use dataclass properties in homekit_controller discovery (#60626)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-30 16:06:18 +01:00
epenet d0ff8a9b76
Add id constant for homekit discovery (#59986) 2021-11-20 10:07:59 +00:00
epenet 982f2065c8
Use ZeroconfServiceInfo in homekit_controller (#59979)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-11-19 08:13:56 -06:00
Marc Mueller 4c68662612
Use assignment expressions 34 (#58823) 2021-10-31 19:01:16 +01:00
Marc Mueller 84618fa831
Use assignment expressions 30 (#58714) 2021-10-30 16:33:42 +02:00
Jc2k af8f594939
Address late review of homekit_controller (#53492)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-07-26 15:32:16 +02:00
Jc2k 0db160e372
Handle homekit accessories where the pairing flag is wrong (#53385) 2021-07-23 20:03:44 -10:00
J. Nick Koston 3191fef8d6
Update the ip/port in the homekit_controller config entry when it changes (#52554) 2021-07-05 15:16:49 -05:00
J. Nick Koston 63c727ac6c
Update homekit_controller to use async zeroconf (#52330) 2021-06-30 18:09:19 +02:00
J. Nick Koston 9f22509a4b
Recover fast when homekit_controller sees a zeroconf announcment for a device that is offline (#51038) 2021-05-25 11:47:45 -05:00
J. Nick Koston 4b0b0f5db7
Allow user to override insecure setup codes and pair with homekit_controller (#50986)
* Allow user to override invalid setup codes and pair with homekit_controller

* adjust from manual testing

* invalid -> insecure
2021-05-23 10:15:38 -05:00
Franck Nijhof 10d6dfd4ae
Clean up connection classes in integrations H-L (#49891) 2021-04-30 21:02:53 -10:00
Franck Nijhof e1a3ef3d69
Clean up config entry handlers decorator from config flows (#49932) 2021-04-30 23:28:25 +02:00
J. Nick Koston b86bba246a
Downgrade logger message about homekit id missing (#49079)
This can happen if the TXT record is received after the PTR record and
should not generate a warning since it will get processed later
2021-04-11 10:36:26 -10:00
J. Nick Koston 7a447c4209
Exclude homekit accessories created by the homekit integration from homekit_controller (#48201) 2021-03-21 22:18:24 -07:00
Franck Nijhof bc1daf1802
None optional hass typing in FlowHandler (#46462)
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-02-13 13:21:37 +01:00
Fuzzy 2fdf32bf1b
Add T8400 to ignore list (#44017) 2020-12-08 20:10:50 +00:00
Jc2k 6ce45e39d1
Hide HomeKit devices from discovery that are known to be problematic (#44014) 2020-12-07 13:51:35 +01:00
J. Nick Koston 46f9c0fb8a
Update phrasing and pin validation for homekit_controller (#40006) 2020-09-13 15:26:04 -05:00
J. Nick Koston 36ce8ba79e
Ensure homekit_controller traps exceptions from find_ip_by_device_id (#40030) 2020-09-13 21:55:49 +02:00
J. Nick Koston 84578f515d
Suppress homekit bridge discovery by homekit controller (#39990) 2020-09-13 09:12:10 -05:00
J. Nick Koston 483d09b9c1
Adjust homekit controller pairing to have a new step for each potentially recoverable error (#38742)
* Adjust homekit controller pairing errors back to a single step

* adjust test

* Revert "Adjust homekit controller pairing errors back to a single step"

This reverts commit e5ed89bbbb.

* Revert "adjust test"

This reverts commit c2e9f21a8401c144315260f6fdf71ea8060f8ca3.

* adjust

* prune

* prune

* merge

* Update tests

* remove debug

* adjust

* Multiple steps

* adjust the test
2020-08-14 10:34:52 -05:00
J. Nick Koston 9bb7b3b125
Fix homekit_controller pairing retry when the first attempt is busy (#38605)
* Fix homekit_controller pairing retry

If the device was busy on the first pairing attempt, it
was not possible to retry.

* always restart pairing on recoverable execptions

* move code

* malformed pin is safe to restart

* make busy_error an abort

* switch max retries, simplify tests

* try pairing later

* try pairing later

* merge

* s/tlv_error/protocol_error/g

* Adjust wording
2020-08-09 22:17:13 -05:00
J. Nick Koston 52939865fa
Use the shared zeroconf instance for homekit_controller (#37691)
* Use the shared zeroconf instance for homekit_controller

* bump version

* Update for upstream changes. Thank you @Jc2k !

* naming

* bump version

* empty commit to reset CI as re-run is not working
2020-07-10 12:18:53 -10:00
Jc2k 1b4851f2e0
Remove deprecated homekit_controller credential storage locations (#34333)
* Remove deprecated homekit_controller credential storage locations

* async_import_legacy_pairing can also be removed
2020-04-20 07:32:30 -04:00
springstan 157f972d72
Use f-strings in integrations starting with "H" - "L" (#32265)
* 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 853d6cda25
Make homekit_controller a local push integration (#32213) 2020-02-26 10:35:53 -08:00
Jc2k c9d78aa78c
Refactor homekit_controller config flow tests (#32141)
* 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