epenet
0b01326f9f
Use is in ConfigEntryState enum comparison in tests (A-M) ( #114925 )
2024-04-05 17:16:55 +02:00
Joost Lekkerkerker
b9281327c4
Use FlowResultType enum in config flow tests A-M ( #114681 )
2024-04-03 09:21:17 +02:00
Joost Lekkerkerker
906d3198e3
Use is in enum comparison in config flow tests F-J ( #114670 )
...
* Use right enum expression F-J
* Fix
2024-04-02 23:01:37 +02:00
Sid
d5f883fbf0
Unignore Ruff PLR in tests ( #114470 )
...
* Unignore Ruff PLR in tests
* Address review comments
* review comments
* fix import
* Update test_api.py
* Update test_api.py
* Update test_api.py
2024-04-01 11:11:59 +02:00
Joost Lekkerkerker
6bb4e7d62c
Bump ruff to 0.3.4 ( #112690 )
...
Co-authored-by: Sid <27780930+autinerd@users.noreply.github.com>
Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-03-26 00:02:16 +01:00
Marc Mueller
81c34ac952
Fix spelling [docstrings + comments] ( #114168 )
2024-03-25 11:33:00 +01:00
J. Nick Koston
ada781025b
Avoid homekit random id generation for existing entries ( #114144 )
2024-03-25 11:28:26 +01:00
J. Nick Koston
9a863638f6
Avoid writing HomeKit state to disk unless its missing ( #111970 )
2024-03-21 09:19:55 -10:00
Erik Montnemery
426f73b1f4
Add State.last_reported ( #113511 )
...
* Add State.last_reported
* Update tests
* Update test snapshots
* Call state_reported listeners when firing state_changed event
* Add tests
2024-03-20 21:05:07 +01:00
Sid
00ec7f11f0
Enable Ruff rule PT007 ( #113764 )
...
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2024-03-19 09:01:07 +01:00
Sid
d5fd005db8
Add ruff rule PIE808 ( #113621 )
2024-03-17 09:56:26 +01:00
Sid
0b9c9aff62
Add ruff rules PIE790, PIE794, PIE807, PIE810 ( #113617 )
2024-03-16 11:04:58 -10:00
Sid
d120993477
fix homekit test asserts ( #113549 )
2024-03-15 22:02:18 +01:00
J. Nick Koston
6e59d1cb29
Migrate homekit to use async_at_started ( #113102 )
2024-03-11 20:08:02 -04:00
Marc Mueller
32f3f46542
Add empty line after module docstring (2) [tests.components] ( #112737 )
2024-03-08 19:16:21 +01:00
Marc Mueller
c88b337600
Add empty line after module docstring [tests f-k] ( #112709 )
2024-03-08 14:50:04 +01:00
J. Nick Koston
675b1a392b
Fix homekit creating executor jobs to resolve default listen ips ( #112522 )
2024-03-06 11:46:23 -10:00
J. Nick Koston
f3a9756f81
Avoid waiting for integration platforms in the parent integration ( #112467 )
2024-03-05 21:16:42 -10:00
J. Nick Koston
136a31e4bc
Avoid creating tasks to run homekit accessories ( #110895 )
2024-02-19 10:36:54 +01:00
J. Nick Koston
206aaac700
Reduce complexity in the homekit config flow filters ( #109850 )
...
* Add typing to entity filters
* Add typing to entity filters
* Add typing to entity filters
* Add typing to entity filters
* tweaks
* tweaks
* tweaks
* tweaks
* tweaks
2024-02-09 09:33:21 -05:00
Robert Resch
6fdad44941
Improve invalid error messages in the config flows ( #108075 )
2024-01-30 12:24:19 +01:00
J. Nick Koston
c399cab427
Small speed up to checking core state ( #107845 )
2024-01-18 08:41:32 -10:00
J. Nick Koston
ea4143154b
Handle unknown state in HomeKit ( #107039 )
2024-01-08 09:42:28 +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
Jan-Philipp Benecke
eda475fe25
Update h* tests to use entity & device registry fixtures ( #103866 )
...
* Update h* tests to use entity & device registry fixtures
* Add missed lines
2023-11-12 13:52:32 -05: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
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
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
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
Jan Bouwhuis
b36681b318
Update homekit entity feature constants ( #98337 )
2023-08-13 15:33:36 +02:00
Erik Montnemery
07b19b3dd9
Adjust homekit tests which create devices ( #98193 )
2023-08-10 18:23:17 +02:00
Erik Montnemery
7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device ( #96479 )
...
* Require keyword arguments to DeviceRegistry.async_get_device
* Update tests
* Update tests
* Don't enforce keyword arguments
2023-07-13 13:39:25 -04: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
J. Nick Koston
b857dc8d94
Bump HAP-python to 4.7.0 ( #94812 )
2023-06-20 23:06:26 +02:00
J. Nick Koston
a0c023d5cb
Reduce overhead to lookup items in the entity and device registry ( #94568 )
2023-06-14 20:47:18 +02:00
Erik Montnemery
0126cfa9d9
Allow exposing any entity to the default conversation agent ( #92398 )
...
* Allow exposing any entity to the default conversation agent
* Tweak
* Fix race, update tests
* Update tests
2023-05-03 09:45:54 -04:00
Erik Montnemery
e3c16e634b
Allow exposing entities not in the entity registry to assistants ( #92363 )
2023-05-02 22:08:09 +02: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
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