Core: Wink integration broken after 0.96

Created on 18 Jul 2019  路  5Comments  路  Source: home-assistant/core

Home Assistant release with the issue: 0.96.0

Last working Home Assistant release (if known): 0.95.0

Operating environment (Hass.io/Docker/Windows/etc.): Ubuntu 18.04, Python 3.6.8

Component/platform: Wink

Description of problem: Nest Thermostat integration via Wink doesn't work after 0.96.0 climate update

Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):

wink:

Traceback (if applicable):

Error on pubnub update for Hallway Thermostat (Hallway Nest) polling API for current state
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity
    await entity.async_update_ha_state()
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 226, in async_update_ha_state
    self._async_write_ha_state()
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 256, in _async_write_ha_state
    attr.update(self.state_attributes or {})
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/climate/__init__.py", line 169, in state_attributes
    ATTR_HVAC_MODES: self.hvac_modes,
  File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/wink/climate.py", line 223, in hvac_modes
    modes = self.wink.modes()
AttributeError: 'WinkThermostat' object has no attribute 'modes'

Additional information:

climate wink

Most helpful comment

I also lost my sensi thermostat through wink with the latest update.

All 5 comments

I also lost my sensi thermostat through wink with the latest update.

I lost my Sensi thermostat with the following error.

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
  File "/usr/src/app/homeassistant/helpers/entity_platform.py", line 365, in _async_add_entity
    await entity.async_update_ha_state()
  File "/usr/src/app/homeassistant/helpers/entity.py", line 226, in async_update_ha_state
    self._async_write_ha_state()
  File "/usr/src/app/homeassistant/helpers/entity.py", line 249, in _async_write_ha_state
    state = self.state
  File "/usr/src/app/homeassistant/components/climate/__init__.py", line 155, in state
    return self.hvac_mode
  File "/usr/src/app/homeassistant/components/wink/climate.py", line 208, in hvac_mode
    wink_mode = self.wink.current_mode()
AttributeError: 'WinkThermostat' object has no attribute 'current_mode'

It sounds like it's fixed. Do we wait for the next release?

It sounds like it's fixed. Do we wait for the next release?

@djtommye 0.96.2 will contain the fix.

I replaced /srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/wink/climate.py with https://raw.githubusercontent.com/w1ll1am23/home-assistant/fix_wink_climate/homeassistant/components/wink/climate.py

I presume that's part of the build, since I don't have that path. I'll just wait. Thanks for finding and resolving the issue!

Was this page helpful?
0 / 5 - 0 ratings