Bre77 / myair

Home Assistant Climate Integration for MyAir, a ducted air conditioning controller that runs on a wall mounted Android tablet.
10 stars 3 forks source link

Code correction in climate.py #10

Closed suleimant closed 4 years ago

suleimant commented 4 years ago

line 282 onwards: if(hvac_mode == HVAC_MODE_OFF): await self.async_set_data({self.acx:{"zones":{"state":MYAIR_ZONE_CLOSE}}}) else: await self.async_set_data({self.acx:{"zones":{"state":MYAIR_ZONE_OPEN}}})

should read if(hvac_mode == HVAC_MODE_OFF): await self.async_set_data({self.acx:{"zones":self.zx:{{"state":MYAIR_ZONE_CLOSE}}}}) else: await self.async_set_data({self.acx:{"zones":self.zx:{{"state":MYAIR_ZONE_OPEN}}}})

Made the change on my local copy and then works :)

Bre77 commented 4 years ago

Thanks for picking this up, I have pushed this change along with some other changes I was working on last night.