From bc0b17c4c6014ecba3d087829c3d97b8d3bc375b Mon Sep 17 00:00:00 2001 From: Ben Campbell Date: Sat, 31 Aug 2024 12:34:10 +0100 Subject: [PATCH] Update service.py Change `last_evaluated` to `target_times_last_evaluated ` as per changes in BottleCapDave Octopus integration v12.0.0 https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/releases/tag/v12.0.0 --- custom_components/hypervolt_charger/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/hypervolt_charger/service.py b/custom_components/hypervolt_charger/service.py index e54e7aa..37d0171 100644 --- a/custom_components/hypervolt_charger/service.py +++ b/custom_components/hypervolt_charger/service.py @@ -64,7 +64,7 @@ async def async_set_schedule(service: ServiceCall) -> None: tracker = hass.states.get(tracker_id) if tracker is not None: - if tracker.attributes.get("last_evaluated", None) is None: + if tracker.attributes.get("target_times_last_evaluated ", None) is None: _LOGGER.info("Tracker not evaluated yet") if backup_available is False: _LOGGER.warning("Tracker data not available and no backup set, unable to set schedule")