From 4394fc2897c8e480cff24f27107ae813d52f4d62 Mon Sep 17 00:00:00 2001 From: Joost Lekkerkerker Date: Sun, 27 Aug 2023 19:38:12 +0200 Subject: [PATCH] Fix typo in AnthemAV const (#99149) --- homeassistant/components/anthemav/__init__.py | 4 ++-- homeassistant/components/anthemav/const.py | 2 +- homeassistant/components/anthemav/media_player.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/anthemav/__init__.py b/homeassistant/components/anthemav/__init__.py index fe7fe072785..0a7e36d8a95 100644 --- a/homeassistant/components/anthemav/__init__.py +++ b/homeassistant/components/anthemav/__init__.py @@ -12,7 +12,7 @@ from homeassistant.core import Event, HomeAssistant, callback from homeassistant.exceptions import ConfigEntryNotReady from homeassistant.helpers.dispatcher import async_dispatcher_send -from .const import ANTHEMAV_UDATE_SIGNAL, DEVICE_TIMEOUT_SECONDS, DOMAIN +from .const import ANTHEMAV_UPDATE_SIGNAL, DEVICE_TIMEOUT_SECONDS, DOMAIN PLATFORMS = [Platform.MEDIA_PLAYER] @@ -26,7 +26,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: def async_anthemav_update_callback(message: str) -> None: """Receive notification from transport that new data exists.""" _LOGGER.debug("Received update callback from AVR: %s", message) - async_dispatcher_send(hass, f"{ANTHEMAV_UDATE_SIGNAL}_{entry.entry_id}") + async_dispatcher_send(hass, f"{ANTHEMAV_UPDATE_SIGNAL}_{entry.entry_id}") try: avr = await anthemav.Connection.create( diff --git a/homeassistant/components/anthemav/const.py b/homeassistant/components/anthemav/const.py index 02f56aed5c4..2b1ff753fba 100644 --- a/homeassistant/components/anthemav/const.py +++ b/homeassistant/components/anthemav/const.py @@ -1,5 +1,5 @@ """Constants for the Anthem A/V Receivers integration.""" -ANTHEMAV_UDATE_SIGNAL = "anthemav_update" +ANTHEMAV_UPDATE_SIGNAL = "anthemav_update" CONF_MODEL = "model" DEFAULT_NAME = "Anthem AV" DEFAULT_PORT = 14999 diff --git a/homeassistant/components/anthemav/media_player.py b/homeassistant/components/anthemav/media_player.py index a28a428a550..4056a34995a 100644 --- a/homeassistant/components/anthemav/media_player.py +++ b/homeassistant/components/anthemav/media_player.py @@ -19,7 +19,7 @@ from homeassistant.helpers.device_registry import DeviceInfo from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platform import AddEntitiesCallback -from .const import ANTHEMAV_UDATE_SIGNAL, CONF_MODEL, DOMAIN, MANUFACTURER +from .const import ANTHEMAV_UPDATE_SIGNAL, CONF_MODEL, DOMAIN, MANUFACTURER _LOGGER = logging.getLogger(__name__) @@ -96,7 +96,7 @@ class AnthemAVR(MediaPlayerEntity): self.async_on_remove( async_dispatcher_connect( self.hass, - f"{ANTHEMAV_UDATE_SIGNAL}_{self._entry_id}", + f"{ANTHEMAV_UPDATE_SIGNAL}_{self._entry_id}", self.update_states, ) )