Closed elockman closed 1 year ago
Resolves the following error:
Requested key 'fan_runtime' not found!
Traceback (most recent call last):
File "/home/user/projects/xeal/tuya/new_test/tinytuya/examples/test_stat.py", line 31, in <module>
tstatdev.setFanRuntime( 15 )
File "/home/user/.local/lib/python3.9/site-packages/tinytuya/Contrib/ThermostatDevice.py", line 350, in setFanRuntime
return self.setValue( 'fan_runtime', int(rt) )
File "/home/user/.local/lib/python3.9/site-packages/tinytuya/Contrib/ThermostatDevice.py", line 353, in setValue
dps, val = self.parseValue( key, val )
TypeError: cannot unpack non-iterable bool object
Thanks @elockman !
This is needed to update the fan runtime during fan cycle mode