mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Fix udp ports (#59293)
This commit is contained in:
parent
ae1592b27a
commit
37259a1448
@ -70,6 +70,8 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool:
|
|||||||
hass.data.setdefault(DOMAIN, {})
|
hass.data.setdefault(DOMAIN, {})
|
||||||
hass.data[DOMAIN][entry.entry_id] = coordinator
|
hass.data[DOMAIN][entry.entry_id] = coordinator
|
||||||
|
|
||||||
|
await coordinator.musiccast.device.enable_polling()
|
||||||
|
|
||||||
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
|
hass.config_entries.async_setup_platforms(entry, PLATFORMS)
|
||||||
|
|
||||||
entry.async_on_unload(entry.add_update_listener(async_reload_entry))
|
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 a config entry."""
|
||||||
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|
unload_ok = await hass.config_entries.async_unload_platforms(entry, PLATFORMS)
|
||||||
if unload_ok:
|
if unload_ok:
|
||||||
|
hass.data[DOMAIN][entry.entry_id].musiccast.device.disable_polling()
|
||||||
hass.data[DOMAIN].pop(entry.entry_id)
|
hass.data[DOMAIN].pop(entry.entry_id)
|
||||||
|
|
||||||
return unload_ok
|
return unload_ok
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/yamaha_musiccast",
|
"documentation": "https://www.home-assistant.io/integrations/yamaha_musiccast",
|
||||||
"requirements": [
|
"requirements": [
|
||||||
"aiomusiccast==0.11.0"
|
"aiomusiccast==0.13.1"
|
||||||
],
|
],
|
||||||
"ssdp": [
|
"ssdp": [
|
||||||
{
|
{
|
||||||
|
@ -216,7 +216,7 @@ aiolyric==1.0.8
|
|||||||
aiomodernforms==0.1.8
|
aiomodernforms==0.1.8
|
||||||
|
|
||||||
# homeassistant.components.yamaha_musiccast
|
# homeassistant.components.yamaha_musiccast
|
||||||
aiomusiccast==0.11.0
|
aiomusiccast==0.13.1
|
||||||
|
|
||||||
# homeassistant.components.nanoleaf
|
# homeassistant.components.nanoleaf
|
||||||
aionanoleaf==0.0.3
|
aionanoleaf==0.0.3
|
||||||
|
@ -146,7 +146,7 @@ aiolyric==1.0.8
|
|||||||
aiomodernforms==0.1.8
|
aiomodernforms==0.1.8
|
||||||
|
|
||||||
# homeassistant.components.yamaha_musiccast
|
# homeassistant.components.yamaha_musiccast
|
||||||
aiomusiccast==0.11.0
|
aiomusiccast==0.13.1
|
||||||
|
|
||||||
# homeassistant.components.nanoleaf
|
# homeassistant.components.nanoleaf
|
||||||
aionanoleaf==0.0.3
|
aionanoleaf==0.0.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user