HomeKit Controller: Adopt config entries for pairing with homekit accessories (#23825)
* 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
This commit is contained in:
parent
3508622e3b
commit
b8cbd39985
19 changed files with 334 additions and 287 deletions
|
@ -71,20 +71,6 @@ def create_window_covering_service_with_v_tilt():
|
|||
return service
|
||||
|
||||
|
||||
async def test_accept_capitalized_property_names(hass, utcnow):
|
||||
"""Test that we can handle a device with capitalized property names."""
|
||||
window_cover = create_window_covering_service()
|
||||
helper = await setup_test_component(hass, [window_cover], capitalize=True)
|
||||
|
||||
# The specific interaction we do here doesn't matter; we just need
|
||||
# to do *something* to ensure that discovery properly dealt with the
|
||||
# capitalized property names.
|
||||
await hass.services.async_call('cover', 'open_cover', {
|
||||
'entity_id': helper.entity_id,
|
||||
}, blocking=True)
|
||||
assert helper.characteristics[POSITION_TARGET].value == 100
|
||||
|
||||
|
||||
async def test_change_window_cover_state(hass, utcnow):
|
||||
"""Test that we can turn a HomeKit alarm on and off again."""
|
||||
window_cover = create_window_covering_service()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue