diff --git a/custom_components/pdns/__init__.py b/custom_components/pdns/__init__.py index a695f20..d1cb6e1 100644 --- a/custom_components/pdns/__init__.py +++ b/custom_components/pdns/__init__.py @@ -57,8 +57,9 @@ def __init__(self, hass: HomeAssistant, entry: ConfigEntry) -> None: ) async def _async_update_data(self) -> dict: + state = {} try: - public_ip = await self.api.async_update() + state = await self.api.async_update() except PDNSFailed as error: _LOGGER.error(error) - return public_ip if public_ip else {} + return state diff --git a/custom_components/pdns/manifest.json b/custom_components/pdns/manifest.json index a3339c1..80a439b 100644 --- a/custom_components/pdns/manifest.json +++ b/custom_components/pdns/manifest.json @@ -6,5 +6,5 @@ "issue_tracker": "https://github.com/Cyr-ius/hass-pdns/issues", "codeowners": ["@Cyr-ius"], "iot_class": "cloud_polling", - "version": "2.3.7" + "version": "2.3.8" } \ No newline at end of file