diff --git a/packages/modules/common/tasmota.py b/packages/modules/common/tasmota.py index 2eb6eb78b1..cf150140a9 100644 --- a/packages/modules/common/tasmota.py +++ b/packages/modules/common/tasmota.py @@ -28,7 +28,7 @@ def get_CounterState(self) -> CounterState: currents = [0.0, 0.0, 0.0] power_factors = [0.0, 0.0, 0.0] - if ['ENERGY'] in tuple(response['StatusSNS']): + if 'ENERGY' in response['StatusSNS']: voltages[self.__phase-1] = float(response['StatusSNS']['ENERGY']['Voltage']) powers[self.__phase-1] = float(response['StatusSNS']['ENERGY']['Power']) power = sum(powers)