Ville Skyttä
334c6c5c02
Make device automation type an enum ( #62354 )
2021-12-20 19:16:30 +01:00
epenet
931d51949d
Use new DeviceClass enums in homekit ( #61665 )
...
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-18 19:07:04 -06:00
J. Nick Koston
400aaeaa91
Ensure homekit setup messages run in event loop ( #60226 )
2021-11-23 11:40:20 -06:00
Ville Skyttä
39691faccc
Use DeviceEntryType in non-typechecked code too ( #58646 )
2021-11-23 10:04:33 +01:00
Erik Montnemery
49a27e12ad
Add support to entity registry for overriding device_class ( #59985 )
2021-11-22 08:38:06 -08:00
J. Nick Koston
2f00f8d3de
Prevent executor overload when starting many homekit instances ( #59950 )
2021-11-18 22:39:49 -08:00
Simone Chemelli
5fc51130ea
Replace util.get_local_ip in favor of components.network.async_get_source_ip() - part 4 ( #58669 )
...
Co-authored-by: J. Nick Koston <nick@koston.org>
2021-11-15 09:18:57 -08:00
Marc Mueller
4c68662612
Use assignment expressions 34 ( #58823 )
2021-10-31 19:01:16 +01:00
J. Nick Koston
438ca73aba
Complete removal of auto_start, zeroconf_default_interface, and safe_mode from HomeKit ( #58320 )
2021-10-24 11:46:35 +02:00
Marc Mueller
ea7252e377
Use assignment expressions 21 ( #57970 )
2021-10-20 17:47:46 +02:00
Erik Montnemery
2b37943355
Don't add indirectly referenced config entities to service calls ( #57671 )
2021-10-15 08:46:43 -07:00
Marc Mueller
48bada5a18
Update pylint to 2.11.1 ( #56364 )
2021-09-18 13:52:59 +02:00
J. Nick Koston
0fc89780e9
Fix listener leak in HomeKit on reload ( #56143 )
...
* Fix listener leak in HomeKit on reload
* Fix mocking
2021-09-12 15:06:03 -07:00
J. Nick Koston
eff59e8b00
Use the same server name for all HomeKit bridges ( #55860 )
2021-09-11 19:00:26 -07:00
J. Nick Koston
195ee2a188
Avoid creating sockets in homekit port available tests ( #55668 )
...
* Avoid creating sockets in homekit port available tests
* prevent new bridge from being setup -- its too fast now that the executor job is gone and it revealed an unpatched setup
2021-09-03 17:15:28 -10:00
J. Nick Koston
bd0af57ef2
Support device triggers in HomeKit ( #53869 )
2021-08-25 16:47:39 +02:00
J. Nick Koston
99465f53c7
Bump HAP-python to 4.1.0 ( #55005 )
2021-08-23 21:00:26 +02:00
Ville Skyttä
939fde0a50
ConfigType and async_setup/setup type hint improvements ( #54739 )
2021-08-18 13:22:05 +02:00
Milan Meulemans
8ab3d9cc12
Use homeassistant.const instead of integration const for device_info ATTR_ ( #53703 )
2021-08-02 15:11:41 +02:00
J. Nick Koston
0f15d2bf19
Ensure HomeKit accessories are started again after reset ( #53372 )
2021-07-24 16:31:30 +02:00
J. Nick Koston
009f34bfed
Add a homekit.unpair service to forcefully remove pairings ( #53303 )
...
- Sometimes homekit will go unresponsive because a pairing for a specific
device is missing. To avoid deleting the config entry and recreating
it, which can be a painful process if there are many bridged entities,
the homekit.unpair service allows forceful removal of the pairings so
the accessory can be paired again.
2021-07-22 12:44:36 +02:00
J. Nick Koston
2a65c5f93c
Recreate HomeKit accessories when calling the reset_accessory service ( #53199 )
2021-07-20 21:45:21 -07:00
J. Nick Koston
6c05e2746d
Improve error message when HomeKit does not support an entity ( #53129 )
2021-07-18 09:27:25 -10:00
J. Nick Koston
30d465e9dd
Update homekit to use network integration ( #52946 )
2021-07-14 11:44:58 +02:00
J. Nick Koston
75d6ffebc8
Improve error when HomeKit accessory underlying entity is missing ( #51713 )
...
* Improve error when HomeKit accessory underlying entity is missing
* docstring in test
2021-06-13 17:27:04 -05:00
Ville Skyttä
7d03b02192
Spelling fixes ( #51642 )
2021-06-11 13:35:03 +02:00
J. Nick Koston
0e7c2cddf7
Upgrade HAP-python to 3.5.0 ( #51261 )
...
* Upgrade HAP-python to 3.4.2
- Fixes for malformed event sending
- Performance improvements
* Bump
* update tests to point to async
2021-05-31 20:47:12 +02:00
tkdrob
d1c4d0de49
Use bool annotations for setup entries ( #51166 )
2021-05-27 17:39:06 +02:00
tkdrob
c0656878db
Normalize async_setup_entry ( #51161 )
2021-05-27 15:56:20 +02:00
J. Nick Koston
7ead482082
Reduce homekit executor calls at start ( #49925 )
...
- We do not need to load/persist since we do it in setup
2021-04-30 23:54:54 +02:00
J. Nick Koston
baa8de2f89
Fix homekit memory leak on entry reload ( #49452 )
2021-04-20 09:11:58 -07:00
J. Nick Koston
fd310e1f41
Update homekit to improve representation of activity based remotes ( #47261 )
2021-03-21 21:55:20 -07:00
J. Nick Koston
c820dd4cb5
Have pylint warn when user visible log messages do not start with capital letter or end with a period ( #48064 )
...
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2021-03-19 09:26:36 -05:00
J. Nick Koston
15aa00d6cc
Fix homekit checking for port cleanup too many times ( #47836 )
...
* Fix homekit checking for port cleanup too many times
The loop should have terminated as soon as the port was available
* coverage
* tweak homekit shutdown wait
2021-03-15 05:14:46 +01:00
J. Nick Koston
f4b775b125
Cleanup homekit and remove aid storage from hass.data ( #47488 )
2021-03-11 22:05:03 -08:00
J. Nick Koston
2e89f152ba
Bump HAP-python to 3.4.0 ( #47476 )
...
* Bump HAP-python to 3.3.3
* bump
* fix mocking
2021-03-07 01:30:57 +01:00
Franck Nijhof
61be29117d
Deprecate HomeKit auto start ( #47470 )
2021-03-05 11:51:49 -08:00
Ville Skyttä
dc880118a4
Lint suppression cleanups ( #47248 )
...
* Unused pylint suppression cleanups
* Remove outdated pylint bug references
* Add flake8-noqa config and note to run it every now and then
* Add codes to noqa's
* Unused noqa cleanups
2021-03-02 09:02:04 +01:00
J. Nick Koston
853da40e70
Increment the homekit config version when restarting ( #47209 )
...
If an entity changes between restart the iOS/controller
device may have cached the old chars for the accessory.
To force the iOS/controller to reload the chars, we
increment the config version when Home Assistant restarts
2021-02-28 20:42:09 -08:00
J. Nick Koston
87cbbcb014
Automatically create HomeKit accessory mode entries ( #46473 )
...
When we set up HomeKit, we asked users if they wanted
to create an entry in bridge or accessory mode.
This approach required the user to understand how HomeKit works and
choose which type to create.
When the user includes the media player or camera domains,
we exclude them from the bridge and create the additional entries
for each entity in accessory mode.
2021-02-23 16:22:23 -08:00
J. Nick Koston
20d93b4b29
Remove support for migrating pre-config entry homekit ( #46616 )
...
HomeKit pairings and accessory ids from versions 0.109 and earlier are no longer
migrated on upgrade. Users upgrading directly to 2021.3 from 0.109
and older should upgrade to 2021.2 first if they wish to preserve
HomeKit configuration and avoid re-pairing the bridge.
This change does not affect upgrades from 0.110 and later.
2021-02-16 08:37:43 +01:00
J. Nick Koston
bc8a52038b
Fix homekit migration not being awaited ( #46460 )
2021-02-12 08:45:19 -10:00
J. Nick Koston
463a32819c
Ensure homekit never picks a port that another config entry uses ( #45433 )
2021-02-02 14:30:38 +01:00
J. Nick Koston
385b7e17ef
Move homekit accessory creation to async ( #45788 )
2021-01-31 11:36:19 -10:00
J. Nick Koston
5f9a1d105c
Improve HomeKit Accessory Mode UX ( #45402 )
2021-01-29 09:57:13 -06:00
J. Nick Koston
af21893652
Remove safe mode from HomeKit ( #45028 )
...
Safe mode was added to work around a race condition where
the mdns announcment was sent too early and would cause
pairing to fail. Since this has been corrected in
HAP-python, there is no longer a need to have
safe mode.
2021-01-11 14:26:09 +01:00
J. Nick Koston
f5b389faa8
Warn users when their HomeKit configuration may be unstable ( #44999 )
2021-01-10 09:38:41 -10:00
J. Nick Koston
a3061ebd8d
Fix homekit bridges when no name was provided ( #43364 )
2020-11-19 12:10:23 +01:00
Lindsay Ward
181811b7b8
Fix typo exceeded, change to exceed, in HomeKit ( #42705 )
2020-11-01 03:51:56 -10:00
J. Nick Koston
2858a90d5c
Start homekit bridges with asyncio.gather ( #42498 )
2020-10-27 19:58:07 -05:00