mirror of
https://github.com/vikt0rm/dbus-goecharger.git
synced 2025-07-30 02:17:13 +02:00
Merge branch 'main' into main
This commit is contained in:
@ -234,9 +234,11 @@ class DbusGoeChargerService:
|
||||
|
||||
self._dbusservice['/Mode'] = 0 # Manual, no control
|
||||
|
||||
|
||||
config = self._getConfig()
|
||||
hardwareVersion = int(config['DEFAULT']['HardwareVersion'])
|
||||
if '/MCU/Temperature' in self._dbusservice: # check if path exists, at some point it was removed
|
||||
if hardwareVersion >= 3:
|
||||
self._dbusservice['/MCU/Temperature'] = int(data['tma'][0] if data['tma'] is not None else 0)
|
||||
self._dbusservice['/MCU/Temperature'] = int(data['tma'][0] if data['tma'][0] else 0)
|
||||
else:
|
||||
self._dbusservice['/MCU/Temperature'] = int(data['tmp'])
|
||||
|
||||
|
Reference in New Issue
Block a user