You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When getting this going, I did a band-aid (which obviously breaks if you have a swing capable system), but essentially climate.py line 243, I changed from if self._swing_mode == SWING_MODE_DEFAULT and self._state is not None: to if self._swing_mode != SWING_MODE_DEFAULT and self._state is not None:
Reason being: I have a ducted unit, which isn't swing capable. Meant that the integration wouldn't start with the following traceback:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 626, in _update_entity_states
await asyncio.gather(*tasks)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 297, in async_update_ha_state
self._async_write_ha_state()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 336, in _async_write_ha_state
attr.update(self.state_attributes or {})
File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 269, in state_attributes
data[ATTR_SWING_MODE] = self.swing_mode
File "/config/custom_components/thinq_v2/climate.py", line 245, in swing_mode
if v[0] == self._state.horz_swing and v[1] == self._state.vert_swing:
File "/usr/local/lib/python3.8/site-packages/wideq/ac.py", line 440, in horz_swing
lookup_enum("airState.wDir.hStep", self.data, self.ac)
File "/usr/local/lib/python3.8/site-packages/wideq/util.py", line 17, in lookup_enum
return device.model.enum_name(attr, data[attr])
KeyError: 'airState.wDir.hStep'
The text was updated successfully, but these errors were encountered:
When getting this going, I did a band-aid (which obviously breaks if you have a swing capable system), but essentially climate.py line 243, I changed from
if self._swing_mode == SWING_MODE_DEFAULT and self._state is not None:
toif self._swing_mode != SWING_MODE_DEFAULT and self._state is not None:
Reason being: I have a ducted unit, which isn't swing capable. Meant that the integration wouldn't start with the following traceback:
The text was updated successfully, but these errors were encountered: