Use SignalType to improve typing [homekit] (#114297)
This commit is contained in:
parent
e626cd12aa
commit
63e28f958d
3 changed files with 10 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue