mirror of
https://github.com/micahqcade/custom_vesync.git
synced 2025-02-11 09:39:00 +01:00
Fix bug in init preventing some discovery (#22)
This commit is contained in:
parent
565321b1c2
commit
a87ff4cf29
@ -62,7 +62,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
|
||||
|
||||
for p, vs_p in PLATFORMS.items():
|
||||
hass.data[DOMAIN][config_entry.entry_id][vs_p] = []
|
||||
if device_dict[VS_SWITCHES]:
|
||||
if device_dict[vs_p]:
|
||||
hass.data[DOMAIN][config_entry.entry_id][vs_p].extend(device_dict[vs_p])
|
||||
hass.async_create_task(forward_setup(config_entry, p))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user