Don't attempt to update the IP if it's not set

This commit is contained in:
Luke Bonaccorsi 2023-08-24 16:35:13 +01:00
parent 89a578c87b
commit 7b26f4a22e
1 changed files with 1 additions and 1 deletions

View File

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