Fix typo exceeded, change to exceed, in HomeKit (#42705)

This commit is contained in:
Lindsay Ward 2020-11-01 23:51:56 +10:00 committed by GitHub
parent 9fc92ab04e
commit 181811b7b8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -507,7 +507,7 @@ class HomeKit:
# The bridge itself counts as an accessory # The bridge itself counts as an accessory
if len(self.bridge.accessories) + 1 >= MAX_DEVICES: if len(self.bridge.accessories) + 1 >= MAX_DEVICES:
_LOGGER.warning( _LOGGER.warning(
"Cannot add %s as this would exceeded the %d device limit. Consider using the filter option", "Cannot add %s as this would exceed the %d device limit. Consider using the filter option",
state.entity_id, state.entity_id,
MAX_DEVICES, MAX_DEVICES,
) )

View File

@ -747,7 +747,7 @@ async def test_homekit_too_many_accessories(hass, hk_driver, caplog):
): ):
await homekit.async_start() await homekit.async_start()
await hass.async_block_till_done() await hass.async_block_till_done()
assert "would exceeded" in caplog.text assert "would exceed" in caplog.text
async def test_homekit_finds_linked_batteries( async def test_homekit_finds_linked_batteries(