Use SignalType to improve typing [homekit] (#114297)

This commit is contained in:
Marc Mueller 2024-03-27 18:05:01 +01:00 committed by GitHub
parent e626cd12aa
commit 63e28f958d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 10 additions and 2 deletions

View file

@ -1,6 +1,9 @@
"""Constants used be the HomeKit component."""
from __future__ import annotations
from homeassistant.const import CONF_DEVICES
from homeassistant.util.signal_type import SignalTypeFormat
# #### Misc ####
DEBOUNCE_TIMEOUT = 0.5
@ -11,6 +14,9 @@ HOMEKIT_FILE = ".homekit.state"
SHUTDOWN_TIMEOUT = 30
CONF_ENTRY_INDEX = "index"
EMPTY_MAC = "00:00:00:00:00:00"
SIGNAL_RELOAD_ENTITIES: SignalTypeFormat[tuple[str, ...]] = SignalTypeFormat(
"homekit_reload_entities_{}"
)
# ### Codecs ####
VIDEO_CODEC_COPY = "copy"