Commit Graph

103 Commits

Author SHA1 Message Date
dc47792ff2 Update codespell to 2.3.0 (#118001) 2024-05-24 08:22:29 +02:00
87bb7ced79 Use PEP 695 for simple type aliases (#117633) 2024-05-17 14:42:21 +02:00
657c9ec25b Add a lock to homekit_controller platform loads (#116539) 2024-05-01 19:23:43 -05:00
ca5ed274cb Deprecate calling async_listen and async_listen_once with run_immediately (#115169) 2024-04-08 10:07:54 -10:00
f2c091fe0c Include serial number in HomeKit device info (#114688)
Very useful when adding a hub that has many identical devices already paired
2024-04-05 17:32:23 +02:00
0f414d8ac5 Ensure HKC debounced availability poll does not block startup (#113130) 2024-03-12 07:43:59 -10:00
281e3922a8 Reduce latency to populate initial HKC bluetooth device state (#113103) 2024-03-11 13:02:20 -10:00
5b2a24b1bb Fix race reloading homekit_controller (#112790)
If the subscribe task was still running during the reload we
would not cancel it. Make it a config entry task so it gets
cancelled at unload
2024-03-08 22:27:08 -05:00
8809d3aa88 Add empty line after module docstring [g-i] (#112699) 2024-03-08 08:52:48 -05:00
c101eb5001 Fix homekit_controller delaying startup and shutdown (#112671)
The alive poll was scheduled as a tracked task but should have
been a background task so it was cancelled.
2024-03-07 23:37:22 -05:00
38f9285bd6 Group platform loads in homekit_controller to minimize executor use (#112148) 2024-03-03 22:39:07 -10:00
c3412bb017 Make homekit_controller platform load tasks eagerly (#111701) 2024-02-27 21:46:42 -10:00
e62b709dea Reduce task overhead in homekit_controller (#111670) 2024-02-27 14:49:29 -10:00
cf849664ba Cleanup BLE-only controls when migrating HomeKit BLE device to Thread (#110334)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-02-27 12:02:27 -10:00
4f404881dd Remove homekit_controller entity registry entries when backing char or service is gone (#109952) 2024-02-09 07:05:08 +00:00
4b7a313ece Use identity checks for CoreState (#107846)
Some of the checks used ==, and some used is. Switch
everything to is as its faster
2024-01-12 10:21:26 +01:00
4ea8c174f5 Improve homekit_controller typing (#107381) 2024-01-06 11:02:30 -10:00
3ebd029026 Bump aiohomekit to 3.0.9 (#103123) 2023-10-31 12:56:15 -05:00
a2c60d9015 Only callback when value or status changes for processing HKC events (#102370) 2023-10-20 12:46:18 -10:00
3014a651c3 Reduce overhead to write HomeKit Controller state (#102365) 2023-10-20 08:50:07 +02:00
3cedfbcc66 Handle re-adding of accessories/services/chars in homekit_controller after removal (#102192) 2023-10-17 22:00:02 -10:00
c3d1db5db6 Handle removal of accessories/services/chars in homekit_controller (#102179) 2023-10-17 20:49:35 -10:00
d8e541a284 Only compute homekit_controller accessory_info when entity is added or config changes (#102145) 2023-10-17 10:53:17 -10:00
e9062bb1b3 Replace lambda with attrgetter in homekit_controller (#99666) 2023-09-05 10:36:43 -05:00
045c327928 Move DeviceInfo from entity to device registry (#98149)
* Move DeviceInfo from entity to device registry

* Update integrations
2023-08-10 22:04:26 -04:00
cc47ff30b3 Split availability and data subscriptions in homekit_controller (#97337) 2023-07-27 09:32:53 -05:00
c0debaf26e Add event entities to homekit_controller (#97140)
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-26 08:20:41 +02:00
aa87f0ad54 Switch homekit_controller to use subscriber lookups (#96739) 2023-07-17 06:32:38 -10:00
d65119bbb3 Avoid writing state in homekit_controller for unrelated aid/iids (#96583) 2023-07-15 06:38:42 -10:00
bc8be9caea Rename HomeKit Controller to HomeKit Device (#95286) 2023-06-26 22:26:16 +02:00
c01b1eb013 Adjust async_track_time_interval name argument (#90838)
Adjust async_track_time_interval naming
2023-04-05 10:58:02 -04:00
02ef7d445d Allow passing an optional name to async_track_time_interval (#90244)
* Allow passing an optional name to async_track_time_interval

This is the same idea as passing a name to asyncio.create_task which
makes it easier to track down bugs

* more

* short

* still cannot find it

* add a few more

* test
2023-03-25 10:11:14 -04:00
f5a05c1bd2 Support HomeKit Controller Thread Provisioning (#87809) 2023-02-15 16:41:07 +00:00
d829a2045a Fix incorrect unique_id for BLE HomeKit devices (#87550) 2023-02-07 19:10:51 -06:00
ca1a12898c Enable Ruff D212 (#87347) 2023-02-03 23:08:48 +01:00
cb13418bab String formatting and max line length - Part 2 (#84393) 2022-12-22 11:38:59 +01:00
1577f6ea50 Restore HomeKit Controller BLE GSN at startup (#83206) 2022-12-04 07:01:37 -10:00
248b93f112 Update aiohomekit to 2.3.0 (#82164) 2022-11-15 20:38:31 -06:00
1ded3ac51e Poll HomeKit Controller locks for state after lock operation (#82058) 2022-11-14 10:54:28 -06:00
5621dfe419 Small cleanups for HomeKit Controller (#81933) 2022-11-10 17:07:30 -06:00
a7610909de Fix HKC exceptions during BLE startup not being caught (#80882) 2022-10-24 09:29:13 -05:00
3c40634fbb Try again to populate HKC BLE accessory state after startup (#80854) 2022-10-23 18:04:42 -05:00
3df73259dd Prevent HomeKit Controller BLE connect retries from blocking startup (#80827) 2022-10-23 13:41:32 -05:00
f23b1750e8 Migrate HomeKit Controller to use stable identifiers (#80064) 2022-10-11 11:26:03 -10:00
92612c9fe3 Add RSSI sensor to HomeKit Controller (#78906) 2022-09-25 21:31:56 -04:00
cd8a5ea1e2 Fix reconnect race in HomeKit Controller (#78629) 2022-09-17 05:13:33 -05:00
eb0828efdb Dont rely on config flow to monitor homekit_controller c# changes (#76861) 2022-08-20 10:58:59 -10:00
a8bb00f305 Fix availability in HKC for sleeping bluetooth devices (#75357) 2022-07-17 17:45:04 -05:00
b9c8d65940 Restore accessory state into pairing using new HKC methods (#75276) 2022-07-16 12:49:15 -05:00
2106c9f247 Fix delay adding entities in HKC (#75273) 2022-07-15 11:21:09 -05:00