Bump HAP-python to 4.1.0 (#55005)

This commit is contained in:
J. Nick Koston 2021-08-23 14:00:26 -05:00 committed by GitHub
parent a5c1fbcb1a
commit 99465f53c7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 12 additions and 16 deletions

View file

@ -560,7 +560,7 @@ async def test_homekit_start(hass, hk_driver, mock_zeroconf, device_reg):
assert (device_registry.CONNECTION_NETWORK_MAC, formatted_mac) in device.connections
assert len(device_reg.devices) == 1
assert homekit.driver.state.config_version == 2
assert homekit.driver.state.config_version == 1
async def test_homekit_start_with_a_broken_accessory(hass, hk_driver, mock_zeroconf):
@ -695,7 +695,7 @@ async def test_homekit_unpair(hass, device_reg, mock_zeroconf):
homekit.status = STATUS_RUNNING
state = homekit.driver.state
state.paired_clients = {"client1": "any"}
state.add_paired_client("client1", "any", b"1")
formatted_mac = device_registry.format_mac(state.mac)
hk_bridge_dev = device_reg.async_get_device(
{}, {(device_registry.CONNECTION_NETWORK_MAC, formatted_mac)}
@ -734,7 +734,7 @@ async def test_homekit_unpair_missing_device_id(hass, device_reg, mock_zeroconf)
homekit.status = STATUS_RUNNING
state = homekit.driver.state
state.paired_clients = {"client1": "any"}
state.add_paired_client("client1", "any", b"1")
with pytest.raises(HomeAssistantError):
await hass.services.async_call(
DOMAIN,
@ -780,7 +780,7 @@ async def test_homekit_unpair_not_homekit_device(hass, device_reg, mock_zeroconf
)
state = homekit.driver.state
state.paired_clients = {"client1": "any"}
state.add_paired_client("client1", "any", b"1")
with pytest.raises(HomeAssistantError):
await hass.services.async_call(
DOMAIN,