Giter Club home page Giter Club logo

wideq's People

Contributors

aklimov-work avatar bindismal avatar boralyl avatar ctih avatar dacrypt avatar dermotduffy avatar eljojo avatar fabiomsouto avatar gladhorn avatar icolwell avatar krocans avatar ncovercash avatar nordron avatar ollo69 avatar sampsyo avatar stboch avatar swails avatar ticky avatar wonchulkang avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

wideq's Issues

Swing Mode

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'

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.