mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 02:37:08 +00:00
Fix typo in AnthemAV const (#99149)
This commit is contained in:
parent
cc103ddbaa
commit
4394fc2897
@ -12,7 +12,7 @@ from homeassistant.core import Event, HomeAssistant, callback
|
|||||||
from homeassistant.exceptions import ConfigEntryNotReady
|
from homeassistant.exceptions import ConfigEntryNotReady
|
||||||
from homeassistant.helpers.dispatcher import async_dispatcher_send
|
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]
|
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:
|
def async_anthemav_update_callback(message: str) -> None:
|
||||||
"""Receive notification from transport that new data exists."""
|
"""Receive notification from transport that new data exists."""
|
||||||
_LOGGER.debug("Received update callback from AVR: %s", message)
|
_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:
|
try:
|
||||||
avr = await anthemav.Connection.create(
|
avr = await anthemav.Connection.create(
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
"""Constants for the Anthem A/V Receivers integration."""
|
"""Constants for the Anthem A/V Receivers integration."""
|
||||||
ANTHEMAV_UDATE_SIGNAL = "anthemav_update"
|
ANTHEMAV_UPDATE_SIGNAL = "anthemav_update"
|
||||||
CONF_MODEL = "model"
|
CONF_MODEL = "model"
|
||||||
DEFAULT_NAME = "Anthem AV"
|
DEFAULT_NAME = "Anthem AV"
|
||||||
DEFAULT_PORT = 14999
|
DEFAULT_PORT = 14999
|
||||||
|
@ -19,7 +19,7 @@ from homeassistant.helpers.device_registry import DeviceInfo
|
|||||||
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
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__)
|
_LOGGER = logging.getLogger(__name__)
|
||||||
|
|
||||||
@ -96,7 +96,7 @@ class AnthemAVR(MediaPlayerEntity):
|
|||||||
self.async_on_remove(
|
self.async_on_remove(
|
||||||
async_dispatcher_connect(
|
async_dispatcher_connect(
|
||||||
self.hass,
|
self.hass,
|
||||||
f"{ANTHEMAV_UDATE_SIGNAL}_{self._entry_id}",
|
f"{ANTHEMAV_UPDATE_SIGNAL}_{self._entry_id}",
|
||||||
self.update_states,
|
self.update_states,
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user