Correct humidifier detection in venstar component and add tests (#50439)

As of version 0.14, the venstar_colortouch lib always initializes hum_setpoint to None. When a thermostat actually reports a humidifier state, this value is replaced with the integer value of the setpoint. This changeset corrects the humidifier detection as well as adds basic test cases for the Venstar component.
This commit is contained in:
Nash Kaminski
2021-05-24 16:41:37 +02:00
committed by GitHub
parent c74e65ac2d
commit 2ae91bf0ea
13 changed files with 149 additions and 3 deletions
+1
View File
@@ -0,0 +1 @@
{"name":"COLORTOUCH","mode":1,"state":0,"fan":0,"fanstate":0,"tempunits":0,"schedule":0,"schedulepart":255,"away":0,"spacetemp":71.0,"heattemp":69.0,"cooltemp":74.0,"cooltempmin":35.0,"cooltempmax":99.0,"heattempmin":35.00,"heattempmax":99.0,"activestage":0,"hum_active":0,"hum":41,"hum_setpoint":30,"dehum_setpoint":99,"setpointdelta":2.0,"availablemodes":0}
+1
View File
@@ -0,0 +1 @@
{"api_ver":7,"type":"residential","model":"COLORTOUCH","firmware":"5.1"}
+1
View File
@@ -0,0 +1 @@
{"sensors":[{"name":"Thermostat","temp":70.0,"hum":41},{"name":"Space Temp","temp":70.0}]}
+1
View File
@@ -0,0 +1 @@
{"name":"T2000","mode":0,"state":0,"activestage":0,"fan":0,"fanstate":0,"tempunits":0,"schedule":0,"schedulepart":1,"away":0,"spacetemp":14.5,"heattemp":10.0,"cooltemp":29.5,"cooltempmin":2.0,"cooltempmax":37.0,"heattempmin":2.0,"heattempmax":37.0,"setpointdelta":2,"availablemodes":2}
+1
View File
@@ -0,0 +1 @@
{"api_ver": 7, "type": "residential", "model": "T2000", "firmware": "4.38"}
+1
View File
@@ -0,0 +1 @@
{"sensors": [{"name":"Thermostat","temp":14},{"name":"Space Temp","temp":14}]}