Don't attempt to update the IP if it's not set
This commit is contained in:
parent
89a578c87b
commit
7b26f4a22e
|
|
@ -41,7 +41,7 @@ async def async_setup(hass, entry) -> bool:
|
|||
return
|
||||
|
||||
hass_data = entry.data.copy()
|
||||
if device["gwId"] in hass_data[CONF_VACS]:
|
||||
if device["gwId"] in hass_data[CONF_VACS] and device.get(CONF_IP_ADDRESS) is not None:
|
||||
if (
|
||||
hass_data[CONF_VACS][device["gwId"]]["ip_address"]
|
||||
!= device[CONF_IP_ADDRESS]
|
||||
|
|
|
|||
Loading…
Reference in New Issue