Handle battery services that only report low battery in HomeKit Controller (#79072)

This commit is contained in:
J. Nick Koston 2022-09-25 12:08:28 -10:00 committed by GitHub
parent b70027aec1
commit 917cf674de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 485 additions and 5 deletions

View file

@ -60,7 +60,7 @@ async def async_setup_entry(
) -> None:
"""Set up Homekit numbers."""
hkid = config_entry.data["AccessoryPairingID"]
conn = hass.data[KNOWN_DEVICES][hkid]
conn: HKDevice = hass.data[KNOWN_DEVICES][hkid]
@callback
def async_add_characteristic(char: Characteristic) -> bool: