From a12e3bc0b22697947dabcf90bae247b19d089a1e Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 19 Oct 2022 05:24:34 +0300 Subject: inverter_bot: fix stupid mistake --- src/inverter_bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/inverter_bot.py b/src/inverter_bot.py index 7fe0ae2..0807b23 100755 --- a/src/inverter_bot.py +++ b/src/inverter_bot.py @@ -72,7 +72,7 @@ def monitor_charging(event: ChargingEvent, **kwargs) -> None: key = 'na_solar' elif event == ChargingEvent.AC_MOSTLY_CHARGED: key = 'mostly_charged' - elif event == ChargingEvent.UTIL_CHARGING_STOPPED: + elif event == ChargingEvent.UTIL_CHARGING_STARTED: key = 'started' is_util = True elif event == ChargingEvent.UTIL_CHARGING_STOPPED: -- cgit v1.2.3