1
0
mirror of https://github.com/home-assistant/core.git synced 2025-06-26 07:57:12 +00:00

53 Commits

Author SHA1 Message Date
Ville Skyttä
40eb8b91cc
Adjust to recommended propcache.api import paths () 2025-01-21 10:58:22 +01:00
G Johansson
666e8e133e
Cover state is enum ()
* Change light state to use enum

* Adjust cover tests

* Update cover

* Fix covers

* Some tests

* More tests

* Fix tests

* Fix
2024-10-08 18:39:04 +02:00
J. Nick Koston
0f29fd3e10
Switch to using fast cached_property implementation in propcache () 2024-10-03 13:11:02 -05:00
red-island
32f75597a9
Fix tilt calculation for HomeKit cover devices () 2024-08-24 16:12:32 +01:00
J. Nick Koston
4138c7a0ef
Handle tilt position being None in HKC () 2024-05-10 00:47:13 -05:00
Marc Mueller
816ce116bf
Remove unnecessary functools.cached_property backport () 2024-04-04 11:24:26 +02:00
Marc Mueller
8809d3aa88
Add empty line after module docstring [g-i] () 2024-03-08 08:52:48 -05:00
J. Nick Koston
bc26377c16
Cache homekit_controller supported features () 2024-01-04 10:31:09 -10:00
J. Nick Koston
eea9de063b
Replace any expression in HomeKitWindowCover with a simple or () 2023-10-16 21:23:30 -10:00
Jc2k
014fb61743
Fix missing device class on Velux Windows () 2023-09-25 11:03:11 -05: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
17573196c8
Adjust type hints for CoverEntityFeature () 2022-11-17 08:39:44 +01:00
J. Nick Koston
f23b1750e8
Migrate HomeKit Controller to use stable identifiers () 2022-10-11 11:26:03 -10:00
J. Nick Koston
c580bce879
Move HKC entity classes into entity.py () 2022-08-06 08:10:26 -10:00
epenet
a5b919ec6b
Use EntityFeature in homekit_controller () 2022-04-06 12:04:58 +02:00
epenet
67c95e92b1
Use CoverDeviceClass in homekit_controller () 2022-04-04 18:16:50 +02:00
Jc2k
9f5d77e0df
Add missing type hints to homekit_controller () 2022-02-01 13:30:37 -06:00
Jc2k
0f88790303
Refactor homekit_controller to prepare for more typing information () 2022-01-31 16:48:16 -06:00
epenet
1f35ad08e2
Add basic type hints to homekit_controller ()
Co-authored-by: epenet <epenet@users.noreply.github.com>
2021-12-28 18:24:40 +00:00
Marc Mueller
eab235173b
Use assignment expressions 28 () 2021-10-22 14:06:04 +02:00
Marc Mueller
748d915909
Don't override methods marked as final () 2021-10-11 15:24:06 +02:00
Erik Montnemery
af4d06b12e
Update integrations f-i to override extra_state_attributes() () 2021-03-11 16:57:47 +01:00
Jc2k
2b6842aee0
Fix velux homekit covers not enumerated correctly () 2020-12-17 17:12:06 +01:00
Jc2k
3e1f2a5103
Refactor how entities are created for homekit_controller services () 2020-11-16 23:11:39 +00:00
J. Nick Koston
4bf9ce6fca
Add support for homekit garage obstruction sensors () 2020-10-23 12:18:02 -05:00
Philip Allgaier
625bbe6238
Cleanup unused loggers (components A-M) () 2020-10-12 16:59:05 +02:00
springstan
61d9067a49
Return empty dictionary at first for attributes () 2020-10-06 18:08:53 +02:00
springstan
513f03eb1f
Return attribute dict directly without temporary variable v2 () 2020-10-06 16:55:16 +02:00
Erik Montnemery
8c5c963b96
Rename CoverDevice to CoverEntity () 2020-04-25 18:07:15 +02:00
Jc2k
7c79adad8f
Refactor and simplify homekit_controller entity setup () 2020-03-18 10:12:55 -05:00
Jc2k
ffe8b94d75
Simplfy homekit_controller characteristic writes () 2020-03-11 09:27:20 -07:00
Jc2k
647d137daa
Refactor homekit_controller entity update to work more like update coordinator ()
* Clean up use of get_characteristic_types

* Get rid of get_hk_char_value helper

* Get rid of _update_fn callbacks

* Call async_write_has_state directly as async_state_changed doesnt do anything any more
2020-03-11 07:40:47 -04:00
Jc2k
df9363610c
Refactor homekit_controller to be fully asynchronous ()
* Port homekit_controller to aiohomekit

* Remove succeed() test helper

* Remove fail() test helper
2020-02-24 10:55:33 +01:00
Paulus Schoutsen
e9e44dbd97
Fix callback and async ()
* Fix callback and async

* Fix a return

* Fix test

* Fix mqtt tests

* Fix some more callbacks
2020-01-29 13:59:45 -08:00
Franck Nijhof
fb35d382e1
Remove all empty *_setup_platform() from integrations ()
* Remove all empty *_setup_platform() from integrations

* Fix tests for smartthings

* Fix tests for heos
2020-01-21 12:38:38 +01:00
springstan
3b5da9c44a Move imports to top for homekit_controller ()
* Move imports to top for homekit_controller

* Fix IpPairing mock in two test files
2019-12-08 16:50:57 +00:00
tleegaard
2ffbe5b99f Inverting states for opening/closing Homekit covers ()
* Update cover.py

* Update test_cover.py
2019-09-24 21:16:08 -07:00
Jc2k
002f74c76b Update homekit_controller import style () 2019-08-14 09:14:15 -07:00
Paulus Schoutsen
4de97abc3a Black 2019-07-31 12:25:30 -07:00
Jc2k
b8cbd39985 HomeKit Controller: Adopt config entries for pairing with homekit accessories ()
* Fix user initiated pairing + show more user friendly name

* Add lock around async_refresh_entity_map

* Migrate homekit_controller to config entries.

* Improve docstring

Co-Authored-By: Martin Hjelmare <marhje52@kth.se>

* Add dummy async_setup_platform

* add_service -> async_add_service

* Add missing returns

* Enable coverage checks for homekit_controller
2019-05-12 23:56:05 -07:00
Jc2k
88455a8a8b homekit_controller: Support cover stop () 2019-04-17 10:02:04 -07:00
cgtobi
2c07bfb9e0 Remove dependencies and requirements ()
* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit fe7171b4cd30889bad5adc9a4fd60059d05ba5a7.

* Remove dependencies and requirements

* Revert "Remove dependencies and requirements"

This reverts commit 391355ee2cc53cbe6954f940062b18ae34b05621.

* Remove dependencies and requirements

* Fix flake8 complaints

* Fix more flake8 complaints

* Revert non-component removals
2019-04-12 10:13:30 -07:00
Jc2k
a62c116959 Remove get_serial helper that is no longer needed. () 2019-03-25 23:49:51 -07:00
Jc2k
b2ba9d07ca Fix unavailable state for homekit locks and covers () 2019-03-25 23:40:28 -07:00
Paulus Schoutsen
4b1de61110
Use relative imports inside integrations ()
* Use relative imports inside integrations

* Lint

* Fix automation tests

* Fix scene imports
2019-03-20 22:56:46 -07:00
Jc2k
0344c761fc Better handling of HomeKit accessory-information service ()
* HomeKit controller: Better handling of accessory-information service

* Changes from review
2019-03-19 15:04:20 -04:00
Jc2k
e618e2f348 Fix error introduced by () 2019-03-12 18:37:33 -07:00
Jc2k
5e2302e469 Add an asyncio Lock around pairing, which cant be used concurrently () 2019-03-11 11:59:41 -07:00
Fabian Affolter
3736120c6a
Update file header ()
* Update file header

* Fix lint issue

* Fix lint issue
2019-02-14 16:01:46 +01:00
Jc2k
abeb875c61 Homekit controller BLE groundwork (part 2) ()
* Only fetch values of characteristics we are tracking.

* Use callbacks on subclasses to update individual values

* Update alarm_control_panel to use update callbacks

* Update climate to use update callbacks

* Update cover to use update callbacks

* Update light to use update callbacks

* Update lock to use update callbacks

* Update switch to use update callbacks

* Remove compatibility code as all entities migrated

* pylint by name rather than code
2019-01-28 21:27:26 +01:00