Improve dispatcher typing (#106872)

This commit is contained in:
Marc Mueller 2024-01-08 09:45:37 +01:00 committed by GitHub
parent ea4143154b
commit fde7a6e9ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 161 additions and 15 deletions

View file

@ -1,4 +1,10 @@
"""Constants for the cloud component."""
from __future__ import annotations
from typing import Any
from homeassistant.helpers.dispatcher import SignalType
DOMAIN = "cloud"
DATA_PLATFORMS_SETUP = "cloud_platforms_setup"
REQUEST_TIMEOUT = 10
@ -64,6 +70,6 @@ CONF_SERVICEHANDLERS_SERVER = "servicehandlers_server"
MODE_DEV = "development"
MODE_PROD = "production"
DISPATCHER_REMOTE_UPDATE = "cloud_remote_update"
DISPATCHER_REMOTE_UPDATE: SignalType[Any] = SignalType("cloud_remote_update")
STT_ENTITY_UNIQUE_ID = "cloud-speech-to-text"