mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 22:25:13 +02:00
Cleanup unnecessary type hint in assist_satellite (#136626)
This commit is contained in:
@@ -10,7 +10,6 @@ from homeassistant.components import websocket_api
|
|||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.exceptions import HomeAssistantError
|
from homeassistant.exceptions import HomeAssistantError
|
||||||
from homeassistant.helpers import config_validation as cv
|
from homeassistant.helpers import config_validation as cv
|
||||||
from homeassistant.helpers.entity_component import EntityComponent
|
|
||||||
from homeassistant.util import uuid as uuid_util
|
from homeassistant.util import uuid as uuid_util
|
||||||
|
|
||||||
from .connection_test import CONNECTION_TEST_URL_BASE
|
from .connection_test import CONNECTION_TEST_URL_BASE
|
||||||
@@ -20,7 +19,6 @@ from .const import (
|
|||||||
DOMAIN,
|
DOMAIN,
|
||||||
AssistSatelliteEntityFeature,
|
AssistSatelliteEntityFeature,
|
||||||
)
|
)
|
||||||
from .entity import AssistSatelliteEntity
|
|
||||||
|
|
||||||
CONNECTION_TEST_TIMEOUT = 30
|
CONNECTION_TEST_TIMEOUT = 30
|
||||||
|
|
||||||
@@ -167,7 +165,7 @@ async def websocket_test_connection(
|
|||||||
|
|
||||||
Send an announcement to the device with a special media id.
|
Send an announcement to the device with a special media id.
|
||||||
"""
|
"""
|
||||||
component: EntityComponent[AssistSatelliteEntity] = hass.data[DOMAIN]
|
component = hass.data[DATA_COMPONENT]
|
||||||
satellite = component.get_entity(msg["entity_id"])
|
satellite = component.get_entity(msg["entity_id"])
|
||||||
if satellite is None:
|
if satellite is None:
|
||||||
connection.send_error(
|
connection.send_error(
|
||||||
|
Reference in New Issue
Block a user