diff --git a/packages/modules/common/tasmota.py b/packages/modules/common/tasmota.py index 98e3fb3a0b..2eb6eb78b1 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 response['StatusSNS']: + if ['ENERGY'] in tuple(response['StatusSNS']): voltages[self.__phase-1] = float(response['StatusSNS']['ENERGY']['Voltage']) powers[self.__phase-1] = float(response['StatusSNS']['ENERGY']['Power']) power = sum(powers)