Andre0512 / pyhOn

Control hOn devices with python
MIT License
470 stars 1.76k forks source link

Issue with sync_command #16

Closed VadymMelnychuk closed 1 year ago

VadymMelnychuk commented 1 year ago

I discovered next issue when my HomeAssistant start I see all modes related to my WaterHeater machMode = [1,2,3]

in settings section this parameter has type 'Range' However, after I call command startProgram the 'machMode' become like a fixed. Only value '1' allowed It happens bcs startProgram also has parameter 'machMode' but with type fixed. So, when you sync fixed -> range you do the reset for ranges.

Also i exxtended sync_command with 'to_sync' parameter:

+2 minor fixes.