File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -292,19 +292,19 @@ def get_temperature(self, ain):
292292
293293 def _get_temperature (self , ain , name ):
294294 plain = self ._aha_request (name , ain = ain , rf = float )
295- return ( plain - 16 ) / 2 + 8
295+ return plain / 2
296296
297297 def get_target_temperature (self , ain ):
298298 """Get the thermostate target temperature."""
299299 return self ._get_temperature (ain , "gethkrtsoll" )
300300
301301 def set_target_temperature (self , ain , temperature , wait = False ):
302302 """Set the thermostate target temperature."""
303- temp = int (16 + (( float ( temperature ) - 8 ) * 2 ) )
303+ temp = int (temperature * 2 )
304304
305- if temp < min ( range ( 16 , 56 )) :
305+ if temp < 16 :
306306 temp = 253
307- elif temp > max ( range ( 16 , 56 )) :
307+ elif temp > 56 :
308308 temp = 254
309309
310310 self ._aha_request ("sethkrtsoll" , ain = ain , param = {"param" : temp })
You can’t perform that action at this time.
0 commit comments