Venstar T7900 fails after adding to configuration.yaml

I am running Home Assistant 0.62.0 on a RPI3 (hassbian). I add the following to configuration.yaml :


climate:
  - platform: venstar
    host: 192.168.1.61

The local API is turned on in the t7900 thermostat. I restart home assistant and I get the following log:


2018-02-01 21:40:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/lib/python3.5/asyncio/tasks.py", line 239, in _step
    result = coro.send(None)
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/entity.py", line 219, in async_update_ha_state
    attr = self.state_attributes or {}
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/climate/__init__.py", line 502, in state_attributes
    supported_features = self.supported_features
  File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/climate/venstar.py", line 90, in supported_features
    if self._client.hum_active == 1:
AttributeError: 'VenstarColorTouch' object has no attribute 'hum_active'

I tried enabling and disabling the humidity feature in the thermostat and it made no difference. I could find no relevant info in the forums or with google so I figured i would ask the experts. Please help.

I have done some more digging on this issue. The variable hum_active that the log above refers to does not exist in the function venstarcolortouch.py that is at \srv\homeassistant\lib\python3.5\site-packages\venstarcolortouch in my home assistant installation. I looked at the latest version on GITHUB and at line 77 the variable hum_active is there ( self.hum_active = None). I have since upgraded my home assistant to 0.62.1 and that did not help. My question is - How do I install the latest version of package venstarcolortouch onto my home assistant. Do I simply copy the venstarcolortouch.py from github and replace the version on my installation? I there a command to upgrade a single package? I just need to know the correct way to get the latest from github. Thanks

I managed to solve this but I dont know if what I did was correct.

  1. I renamed the two venstarcolortouch folders from \srv\homeassistant\lib\python3.5\site-packages the folders were called venstarcolortouch and venstarcolortouch-0.5.dist-info.
  2. reinstall venstarcolortouch from git in the virtual environment.
$ sudo su -s /bin/bash homeassistant
$ source /srv/homeassistant/bin/activate
$ pip3 install git+https://github.com/hpeyerl/venstar_colortouch
$ exit

  1. restart home assistant

The Venstar t7900 thermostat now works great. If what I did was right or wrong please reply. If what I did was wrong I dont want other members doing it and possibly messing up their home assistant. YMMV
Thanks