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
|
return
|
||||||
|
|
||||||
hass_data = entry.data.copy()
|
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 (
|
if (
|
||||||
hass_data[CONF_VACS][device["gwId"]]["ip_address"]
|
hass_data[CONF_VACS][device["gwId"]]["ip_address"]
|
||||||
!= device[CONF_IP_ADDRESS]
|
!= device[CONF_IP_ADDRESS]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue