diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-10-19 23:03:31 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-10-19 23:03:31 +0300 |
commit | 39bda3e7bc173314e552f4a23d934b744fe72e40 (patch) | |
tree | f9a1a1fe68e15a956fc30c9e9f26f32299f0ed44 | |
parent | 52707f7bf9fbb64677c438675cbea49e2c8d8540 (diff) |
inverter/monitor: fix
-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, |