mirror of
https://github.com/home-assistant/core.git
synced 2025-11-15 22:10:09 +00:00
Implement source switching for homekit_controller televisions (#32526)
This commit is contained in:
@@ -67,7 +67,7 @@ async def setup_accessories_from_file(hass, path):
|
||||
load_fixture, os.path.join("homekit_controller", path)
|
||||
)
|
||||
accessories_json = json.loads(accessories_fixture)
|
||||
accessories = Accessory.setup_accessories_from_list(accessories_json)
|
||||
accessories = Accessories.from_list(accessories_json)
|
||||
return accessories
|
||||
|
||||
|
||||
@@ -153,7 +153,9 @@ async def setup_test_component(hass, setup_accessory, capitalize=False, suffix=N
|
||||
|
||||
If suffix is set, entityId will include the suffix
|
||||
"""
|
||||
accessory = Accessory("TestDevice", "example.com", "Test", "0001", "0.1")
|
||||
accessory = Accessory.create_with_info(
|
||||
"TestDevice", "example.com", "Test", "0001", "0.1"
|
||||
)
|
||||
setup_accessory(accessory)
|
||||
|
||||
domain = None
|
||||
|
||||
Reference in New Issue
Block a user