diff options
Diffstat (limited to 'src/home/inverter')
-rw-r--r-- | src/home/inverter/monitor.py | 2 |
1 files changed, 1 insertions, 1 deletions
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, |