From bed93b148fa379a34a10d7801720628d8597f9f1 Mon Sep 17 00:00:00 2001 From: Claus Dethlefsen Date: Mon, 16 Mar 2026 21:03:57 +0100 Subject: [PATCH] Get rid of warnings in the log --- include/automations/tesla_stop_when_full.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/automations/tesla_stop_when_full.yaml b/include/automations/tesla_stop_when_full.yaml index 2758382..03d795d 100644 --- a/include/automations/tesla_stop_when_full.yaml +++ b/include/automations/tesla_stop_when_full.yaml @@ -2,8 +2,8 @@ trigger: - platform: template value_template: > - {{ states('sensor.snowywhite_battery')|float >= - states('number.snowywhite_charge_limit')|float }} + {{ (states('sensor.snowywhite_battery') | default(0)) | float >= + (states('number.snowywhite_charge_limit') | default(100)) | float }} action: - service: switch.turn_off