core: Venstar not working after update to 2022.7.x
The problem
Home Assistant throws the same error when testing pip package “venstarcolortouch”. After commenting / removing lines 207 & 208 (listed below) everything works fine. Is there a fix for this? Am I able to upload my own fork for Venstar?
# 207 self.hum_setpoint = self.get_settings("hum_setpoint")
# 208 self.dehum_setpoint = self.get_settings("dehum_setpoint")
What version of Home Assistant Core has the issue?
2022.7.3
What was the last working version of Home Assistant Core?
2022.6
What type of installation are you running?
Home Assistant Supervised
Integration causing the issue
venstar
Link to integration documentation on our website
https://www.home-assistant.io/integrations/venstar
Diagnostics information
File "C:\x\py\Lib\site-packages\venstarcolortouch\venstarcolortouch.py", line 207, in update_info
self.hum_setpoint = self.get_settings("hum_setpoint")
File "C:\x\py\\Lib\site-packages\venstarcolortouch\venstarcolortouch.py", line 272, in get_settings
setting = r.json()[attr]
KeyError: 'hum_setpoint'
Example YAML snippet
No response
Anything in the logs that might be useful for us?
File "C:\x\py\Lib\site-packages\venstarcolortouch\venstarcolortouch.py", line 207, in update_info
self.hum_setpoint = self.get_settings("hum_setpoint")
File "C:\x\py\\Lib\site-packages\venstarcolortouch\venstarcolortouch.py", line 272, in get_settings
setting = r.json()[attr]
KeyError: 'hum_setpoint'
### Additional information
_No response_
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 21
So with some experimentation it appears my issue is not the same as others - my thermostat does not return the “firmware” key upon logging in, so it breaks a particular bit of code. I’m not very familiar with how to request a pull request - I forked the code and created a pull request, but it appears to be just for my own fork? Any assistance would be appreciated!
EDIT: I think I made a pull request correctly!
https://github.com/hpeyerl/venstar_colortouch/pull/44
I had hoped for this issue to be resolved in a future upgrade but it did not look like it was coming any time soon. My 2 venstars 5900s are at the most current firmware level 4.08-1 and any attempt to ugrade HA core to any release after 2022.6.7 resulted in firmware errors and venstar was no longer working. I followed the 6 steps above and now venstar is working fine on 2022.7.7. Thank you!