From 39bda3e7bc173314e552f4a23d934b744fe72e40 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Wed, 19 Oct 2022 23:03:31 +0300 Subject: inverter/monitor: fix --- src/home/inverter/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/home/inverter') diff --git a/src/home/inverter/monitor.py b/src/home/inverter/monitor.py index c93cbfc..2fcd55a 100644 --- a/src/home/inverter/monitor.py +++ b/src/home/inverter/monitor.py @@ -213,7 +213,7 @@ class InverterMonitor(Thread): if not pd_event_send and not solar: if pd == BatteryPowerDirection.CHARGING: self.charging_event_handler(ChargingEvent.UTIL_CHARGING_STARTED) - else: + elif pd == BatteryPowerDirection.DISCHARGING: self.charging_event_handler(ChargingEvent.UTIL_CHARGING_STOPPED) def gen_charging_program(self, -- cgit v1.2.3