Skip to content

Commit

Permalink
Merge pull request #71 from Meatballs1/last_eval
Browse files Browse the repository at this point in the history
Update service.py
  • Loading branch information
gndean authored Sep 14, 2024
2 parents e3653b3 + bc0b17c commit 409ec2f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/hypervolt_charger/service.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 409ec2f

Please sign in to comment.