Fix udp ports (#59293)

This commit is contained in:
micha91 2021-11-07 16:38:12 +01:00 committed by GitHub
parent ae1592b27a
commit 37259a1448
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 3 deletions

View file

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

View file

@ -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": [
{

View file

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

View file

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