Fix typo in AnthemAV const (#99149)

This commit is contained in:
Joost Lekkerkerker 2023-08-27 19:38:12 +02:00 committed by GitHub
parent cc103ddbaa
commit 4394fc2897
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View File

@ -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(

View File

@ -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

View File

@ -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,
)
)