Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swing Mode #1

Closed
davewatson91 opened this issue Apr 20, 2021 · 1 comment
Closed

Swing Mode #1

davewatson91 opened this issue Apr 20, 2021 · 1 comment

Comments

@davewatson91
Copy link

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'
@davewatson91
Copy link
Author

Wrong repo sorry - moved to marciogranzotto/hass-smartthinq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant