Fix udp ports (#59293)
This commit is contained in:
parent
ae1592b27a
commit
37259a1448
4 changed files with 6 additions and 3 deletions
|
@ -70,6 +70,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
hass.data.setdefault(DOMAIN, {})
|
||||
hass.data[DOMAIN][entry.entry_id] = coordinator
|
||||
|
||||
await coordinator.musiccast.device.enable_polling()
|
||||
|
||||
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
|
||||
|
||||
entry.async_on_unload(entry.add_update_listener(async_reload_entry))
|
||||
|
@ -80,6 +82,7 @@ async def async_unload_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||
"""Unload a config entry."""
|
||||
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|
||||
if unload_ok:
|
||||
hass.data[DOMAIN][entry.entry_id].musiccast.device.disable_polling()
|
||||
hass.data[DOMAIN].pop(entry.entry_id)
|
||||
|
||||
return unload_ok
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/yamaha_musiccast",
|
||||
"requirements": [
|
||||
"aiomusiccast==0.11.0"
|
||||
"aiomusiccast==0.13.1"
|
||||
],
|
||||
"ssdp": [
|
||||
{
|
||||
|
|
|
@ -216,7 +216,7 @@ aiolyric==1.0.8
|
|||
aiomodernforms==0.1.8
|
||||
|
||||
# homeassistant.components.yamaha_musiccast
|
||||
aiomusiccast==0.11.0
|
||||
aiomusiccast==0.13.1
|
||||
|
||||
# homeassistant.components.nanoleaf
|
||||
aionanoleaf==0.0.3
|
||||
|
|
|
@ -146,7 +146,7 @@ aiolyric==1.0.8
|
|||
aiomodernforms==0.1.8
|
||||
|
||||
# homeassistant.components.yamaha_musiccast
|
||||
aiomusiccast==0.11.0
|
||||
aiomusiccast==0.13.1
|
||||
|
||||
# homeassistant.components.nanoleaf
|
||||
aionanoleaf==0.0.3
|
||||
|
|
Loading…
Add table
Reference in a new issue