From 3345eab2db07a4f4ff559a1a74eb7b97f12d1b1e Mon Sep 17 00:00:00 2001 From: BottlecapDave Date: Thu, 5 Oct 2023 05:17:53 +0100 Subject: [PATCH] chore: Fixed intelligent settings coordinator --- .../octopus_energy/coordinators/intelligent_settings.py | 1 + 1 file changed, 1 insertion(+) diff --git a/custom_components/octopus_energy/coordinators/intelligent_settings.py b/custom_components/octopus_energy/coordinators/intelligent_settings.py index 96d2a376..21b82a3d 100644 --- a/custom_components/octopus_energy/coordinators/intelligent_settings.py +++ b/custom_components/octopus_energy/coordinators/intelligent_settings.py @@ -39,6 +39,7 @@ async def async_update_intelligent_settings_data(): client: OctopusEnergyApiClient = hass.data[DOMAIN][DATA_CLIENT] if (DATA_ACCOUNT in hass.data[DOMAIN]): + settings = None if has_intelligent_tariff(current, hass.data[DOMAIN][DATA_ACCOUNT]): try: settings = await client.async_get_intelligent_settings(account_id)