Commit graph

275 commits

Author SHA1 Message Date
Robert Resch
494a897568
Deprecate deprecated climate constants () 2023-12-21 00:00:21 +01:00
Ville Skyttä
24b1e01d71
Update Ruff to 0.1.8, avoid linter/formatter conflicts ()
* 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
Jan-Philipp Benecke
d322cb5fdf
Migrate homekit_controller tests to use freezegun () 2023-12-13 19:37:51 +01:00
Jan-Philipp Benecke
eda475fe25
Update h* tests to use entity & device registry fixtures ()
* Update h* tests to use entity & device registry fixtures

* Add missed lines
2023-11-12 13:52:32 -05:00
Erik Montnemery
1621310ba7
Add serial_number to device registry entries ()
Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
2023-10-22 15:14:44 +02:00
J. Nick Koston
a2c60d9015
Only callback when value or status changes for processing HKC events () 2023-10-20 12:46:18 -10:00
J. Nick Koston
f51743f123
Bump aiohomekit to 3.0.7 () 2023-10-20 23:08:41 +02:00
Paul Bottein
c98c18f25e
Return 'None' for light attributes when off instead of removing them () 2023-10-19 01:08:08 +02:00
J. Nick Koston
3cedfbcc66
Handle re-adding of accessories/services/chars in homekit_controller after removal () 2023-10-17 22:00:02 -10:00
J. Nick Koston
c3d1db5db6
Handle removal of accessories/services/chars in homekit_controller () 2023-10-17 20:49:35 -10:00
J. Nick Koston
d8e541a284
Only compute homekit_controller accessory_info when entity is added or config changes () 2023-10-17 10:53:17 -10:00
J. Nick Koston
433c022687
Save previous unique id in entity registry when it changes () 2023-10-16 21:26:19 -10:00
Jc2k
cae19431d1
Simplify homekit_controller tests with snapshots () 2023-09-25 16:26:27 -05:00
Jc2k
7334bc7c9b
Add a select entity for homekit temperature display units () 2023-09-25 08:53:01 -05:00
J. Nick Koston
ec5675ff4b
Fix hkid matching in homekit_controller when zeroconf value is not upper case () 2023-09-20 17:37:13 +02:00
J. Nick Koston
0eca433004
Update zeroconf discovery to use IPAddress objects to avoid conversions () 2023-09-19 18:58:46 +02:00
Marco Garzola
b8086f3c21
Map heatercooler rotation speed as 3 level fan speed in homekit controller ()
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-08-21 10:10:24 -05:00
Erik Montnemery
b11dc50f9e
Adjust homekit_controller tests which create devices () 2023-08-10 18:25:53 +02:00
Franck Nijhof
868a5f377f
Ruff: isort don't split imports based on trailing comma () 2023-08-10 14:27:03 +02:00
J. Nick Koston
a09090bf99
Do not fire homekit_controller events from IP polling ()
* Fix homekit_controller triggers when value is None

* fixes

* cover
2023-08-06 00:31:50 +02:00
Meow
6fd60024cc
Refactored deprecated UNITS () 2023-08-03 21:12:01 +02:00
J. Nick Koston
e7069d48be
Load homekit_controller test data using its json loader () 2023-07-31 07:04:41 -07:00
Jc2k
c0debaf26e
Add event entities to homekit_controller ()
Co-authored-by: Franck Nijhof <frenck@frenck.nl>
2023-07-26 08:20:41 +02:00
c0ffeeca7
67eeed6703
Rename homekit "Filter Life" sensor to "Filter lifetime" ()
* String review: rename 'life' to 'lifetime'

- The term life, such as in 'filter life' can be ambiguous.
- Renamed to 'lifetime', as quite a few integrations use the term 'lifetime' to express this concept
- Improves consistency and should be easier to understand.

* HomeKit: adapt test case to reflect string change

* Fix test case failure caused by string rename: first step
2023-07-18 15:11:14 +02:00
Erik Montnemery
7539cf25be
Don't require passing identifiers to DeviceRegistry.async_get_device ()
* 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
Franck Nijhof
3e85a29b86
Move overlapping pylint rules to ruff, disable mypy overlap () 2023-06-27 17:42:46 +02:00
Erik Montnemery
5884afd485
Teach sensor device trigger about entity registry ids () 2023-06-22 11:13:54 +02:00
Erik Montnemery
49ec806046
Teach button device trigger about entity registry ids ()
* Teach button device trigger about entity registry ids

* Update homekit_controller tests
2023-06-21 14:50:11 +02:00
Jan Bouwhuis
d6b89b6f7b
Add current_humidity attribute on homekit_controller humidifier () 2023-06-20 21:46:07 +01:00
Erik Montnemery
fd822bce56
Replace assert_lists_same with pytest_unordered in integrations h-m () 2023-06-20 20:16:25 +02:00
Jan Bouwhuis
ec98e22330
Add type hints for stub_blueprint_populate fixture ()
Add typehints for stub_blueprint_populate fixture
2023-05-26 08:13:13 +02:00
Erik Montnemery
3cca338c6e
Improve blueprint test fixtures () 2023-05-25 13:45:19 +02:00
badewanne1234
393dbb6dc0
Fix of cover-tilt in homekit_controller ()
* Fix of cover-tilt in homekit_controller

* Fix of cover-tilt and its tests
2023-05-25 12:41:42 +02:00
epenet
69a46d4002
Adjust pylint plugin for components fixtures ()
* Adjust pylint plugin for components fixtures

* Adjust components

* Use MagicMock

* Adjust

* Use None
2023-03-26 15:21:19 +02:00
epenet
a102883eff
Add type hints to integration tests (part 2) () 2023-02-21 09:25:05 +01:00
dcmeglio
da046f93f4
Add additional characteristics for Airversa Homekit Air Purifiers () 2023-02-17 15:55:31 +00:00
Jc2k
f5a05c1bd2
Support HomeKit Controller Thread Provisioning () 2023-02-15 16:41:07 +00:00
Franck Nijhof
ed79265843
Enable Ruff PT006 ()
* Enable Ruff PT006

* Adjust existing cases

* Fix tests

* Remove unneeded parentheses
2023-02-15 14:09:50 +01:00
epenet
1e352b60df
Add type hints to integration tests (part 11) () 2023-02-13 14:22:49 +01:00
epenet
03710e58b5
Add type hints to integration tests (part 9) () 2023-02-13 12:06:51 +01:00
Erik Montnemery
cc564026fa
Move EntityCategory to homeassistant.const ()
* Move EntityCategory to homeassistant.const

* Fix more imports
2023-02-09 20:15:37 +01:00
Franck Nijhof
330e1c6cbb
Clean up unnecessary registry mocks from integration tests () 2023-02-09 10:43:45 +01:00
epenet
37a2040d7b
Add type hints to integration tests (h-i) () 2023-02-08 18:12:56 +01:00
Jc2k
d829a2045a
Fix incorrect unique_id for BLE HomeKit devices () 2023-02-07 19:10:51 -06:00
epenet
4142f0d15d
Add return type to tests without arguments ()
* Add return type to tests without arguments

* Black

* Cancel fixture amends
2023-02-07 14:20:06 +01:00
Franck Nijhof
ca1a12898c
Enable Ruff D212 () 2023-02-03 23:08:48 +01:00
epenet
a79be493e5
Adjust hass_client type hint in integration tests ()
* Adjust hass_client type hint in integration tests

* Adjust hass_client_no_auth

* Fix rebase
2023-02-02 16:29:57 -05:00
Franck Nijhof
89c0b27b42
Migrates tests to use UnitOfPressure enum () 2023-01-27 12:13:27 +01:00
Franck Nijhof
fca3382d37
Migrates tests to use MediaPlayerEntityFeature enum () 2023-01-27 10:56:40 +01:00
epenet
30bf0634fe
Add per-file-ignore to pylint () 2023-01-22 17:26:24 +01:00