Commit Graph

680 Commits (712ba2fdca8604d0ed56e8ae84bc657c50bc6cca)

Author SHA1 Message Date
J. Nick Koston 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
J. Nick Koston ea4143154b
Handle unknown state in HomeKit (#107039) 2024-01-08 09:42:28 +01:00
Ville Skyttä 24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts (#106080)
* Disable Ruff rules that may conflict with the formatter

* Upgrade Ruff to 0.1.8

- https://github.com/astral-sh/ruff/releases/tag/v0.1.7
- https://github.com/astral-sh/ruff/releases/tag/v0.1.8

* Format with Ruff 0.1.8
2023-12-20 23:55:09 +01:00
Aarni Koskela 706add4a57
Switch formatting from black to ruff-format (#102893)
Co-authored-by: Franck Nijhof <git@frenck.dev>
2023-11-27 14:38:59 +01:00
J. Nick Koston 371a49d2f4
Bump HAP-python 4.9.1 (#102811) 2023-10-25 15:55:28 -05:00
J. Nick Koston 3cfcffc6f2
Bump fnv-hash-fast to 0.5.0 (#102271) 2023-10-20 16:49:40 +02:00
J. Nick Koston 327bdce561
Handle ATTR_HS_COLOR being None in HomeKit (#102290) 2023-10-18 22:42:39 -10:00
J. Nick Koston 10fd26df4b
Preserve HomeKit Accessory ID when entity unique id changes (#102123) 2023-10-16 21:42:02 -10:00
J. Nick Koston d237ab6d67
Bump HAP-python to 4.9.0 (#102055) 2023-10-15 06:49:59 -10:00
J. Nick Koston 5ed8de8348
Enable strict typing in HomeKit (#101968) 2023-10-13 14:45:59 -10:00
J. Nick Koston 0e499e07d2
Small cleanups to HomeKit thermostats (#101962) 2023-10-13 14:24:23 -10:00
J. Nick Koston f8f39a29de
Update HomeKit humidifiers to handle current humidity (#101964) 2023-10-13 14:23:50 -10:00
J. Nick Koston 8fd5d89d43
Avoid polling state machine for available state in HomeKit (#101799) 2023-10-13 14:23:15 -10:00
J. Nick Koston 76e2afbce9
Add some more typing to HomeKit (#101959) 2023-10-13 14:03:01 -10:00
J. Nick Koston cc3d1a11bd
Add more typing to HomeKit (#101896) 2023-10-12 08:43:53 -10:00
J. Nick Koston 39fd5897cb
Small typing cleanups for HomeKit (#101790) 2023-10-11 08:11:58 +02:00
J. Nick Koston 265f6653c3
Refactor homekit to use a dataclass for entry data (#101738) 2023-10-10 21:14:37 +02:00
J. Nick Koston 7b4b8e7516
Refactor HomeKit to allow supported features/device class to change (#101719) 2023-10-10 06:20:25 -10:00
J. Nick Koston f166e1cc1a
Map switch device class outlet to Outlets in homekit (#101760) 2023-10-10 05:55:42 -10:00
J. Nick Koston 8dffff3983
Bump HAP-python to 4.8.0 (#101538) 2023-10-06 17:06:18 +02:00
J. Nick Koston 7d07694496
Fix HomeKit handling of unavailable state (#101021) 2023-09-27 23:34:25 +02:00
J. Nick Koston 4c255677c3
Add support for receivers to HomeKit (#100717) 2023-09-25 09:36:01 -05:00
J. Nick Koston c1b9400833
Provide a better model for HomeKit service entries (#100848) 2023-09-25 09:34:53 -05:00
Yuxiang Zhu 739eb28b90
Make homekit RTP/RTCP source ports more deterministic (#99989) 2023-09-10 09:07:35 -05:00
J. Nick Koston e22b03d6b3
Switch homekit config flow sorted to use itemgetter (#99658)
Avoids unnecessary lambda
2023-09-05 21:18:46 -04:00
J. Nick Koston 6992ea9af0
Bump fnv-hash-fast to 0.4.1 (#99135) 2023-08-27 10:08:21 -05:00
J. Nick Koston 5ce8e0e33e
Bump HAP-python to 4.7.1 (#97545) 2023-08-01 09:49:20 +02:00
J. Nick Koston 5cc72814c9
Bump fnv-hash-fast to 0.4.0 (#97160) 2023-07-24 20:34:46 +02:00
Marc Mueller 995c29e052
Cleanup EventType typing (#97136) 2023-07-24 13:18:38 +02:00
Marc Mueller 5b73bd2f8e
Use EventType for state changed [h-m] (#97117) 2023-07-24 08:01:50 +02:00
Joost Lekkerkerker b367c95c81
Add more common translations (#96429)
* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations

* Add common translations
2023-07-12 22:00:05 -04:00
Franck Nijhof 7bc90297d2
Migrate integration services (G-H) to support translations (#96372) 2023-07-12 12:31:26 +02:00
J. Nick Koston e3e1bef376
Fix manual specification of multiple advertise_ip with HomeKit (#95548)
fixes #95508
2023-06-29 11:35:32 -04:00
Franck Nijhof 3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap (#94359) 2023-06-27 17:42:46 +02:00
J. Nick Koston ef2e55ecec
Add dual IP stack support to HomeKit (#94126)
* Add dual IP stack support to HomeKit

* fix tests

* Update homeassistant/components/network/__init__.py

* remove scopes

* Bump HAP-python to 4.7.0

fixes pairing with newer iOS

changelog: https://github.com/ikalchev/HAP-python/compare/v4.6.0...4.7.0

* fixes

* update tests

* Relocate get_announced_addresses from zeroconf to network

needed for #94126

* rename

* rename

* Update homeassistant/components/network/__init__.py

* Update homeassistant/components/network/__init__.py

* rename

* fix import

* coverage
2023-06-24 23:18:38 -04:00
Erik Montnemery f10256169b
Teach homekit about entity registry ids in device triggers (#95009) 2023-06-21 23:28:43 +02:00
J. Nick Koston b857dc8d94
Bump HAP-python to 4.7.0 (#94812) 2023-06-20 23:06:26 +02:00
Franck Nijhof a419c78524
Rename HomeKit to HomeKit Bridge (#91741) 2023-04-20 09:03:12 -04:00
J. Nick Koston b875706bdd
Default homekit to listening on all interfaces to match Home Assistant behavior (#91520) 2023-04-17 09:41:57 +02:00
Assaf Inbal 7446ff478f
Add h264_v4l2m2m codec and profiles to HomeKit cameras (#91246) 2023-04-12 10:46:21 -10:00
J. Nick Koston d442f2aedb
Add names to homekit tasks to better track startup problems (#90802)
* Add names to homekit tasks to better track startup problems

* fix test
2023-04-08 23:13:47 -04:00
J. Nick Koston 8fe597b7c6
Clarify HomeKit include behavior in the config flow (#91106)
* Clarify HomeKit include behavior in the config flow

If a domain is selected to be included and specific entities are
not selected in the domain, all entities will be included in that
domain.

* tweak
2023-04-08 23:12:02 -04:00
J. Nick Koston b4fec762bc
Switch to fnv-hash-fast from fnvhash (#90761)
* Switch to fnv-hash-fast from fnvhash

Replaces the pure python implemention with a fast cpp one
when available (with fallback to pure python)

changelog: https://github.com/bdraco/fnv-hash-fast/releases/tag/v0.3.1
source: https://github.com/bdraco/fnv-hash-fast/tree/main/src/fnv_hash_fast

* Apply suggestions from code review

* lint
2023-04-05 20:52:23 -04:00
Stackie Jia 5c2af99520
Improve the HomeKit (de)humidifier min/max humidity handling (#90854) 2023-04-05 06:35:47 -10:00
Doney den Ouden 755c44d152
Add HomeKit Door accessory type (#80741)
Co-authored-by: Jason Redd <jredd46@gmail.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-03-06 18:07:43 -10:00
epenet 42b74e7f56
Adjust entity registry access in integrations (3) (#88948) 2023-03-01 08:24:56 +01:00
J. Nick Koston 3ebb2fc3a9
Fix handling of HomeKit sources with unsafe characters (#88280)
fixes #87049
2023-02-22 14:33:27 -05:00
J. Nick Koston 906d397736
Update homekit to use async_get_integrations (#88550) 2023-02-22 09:25:47 +01:00
emanuelst 0b81c836ef
Update HomeKit VOC mappings (#87663)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-02-20 11:56:41 -06:00
Paulus Schoutsen 3c68907351
Fix dangling task for homekit (#88289) 2023-02-16 23:07:54 -05:00