summaryrefslogtreecommitdiff
path: root/src/home/inverter/monitor.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-10-19 23:03:31 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-10-19 23:03:31 +0300
commit39bda3e7bc173314e552f4a23d934b744fe72e40 (patch)
treef9a1a1fe68e15a956fc30c9e9f26f32299f0ed44 /src/home/inverter/monitor.py
parent52707f7bf9fbb64677c438675cbea49e2c8d8540 (diff)
inverter/monitor: fix
Diffstat (limited to 'src/home/inverter/monitor.py')
-rw-r--r--src/home/inverter/monitor.py2
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,