Coder Social home page Coder Social logo

xiaomi_airconditioning_c1's People

Contributors

lt21 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

xiaomi_airconditioning_c1's Issues

ValueError: 'heat' is not a valid OperationMode

Home Assistant 0.103.6
I have got these errors. Could you help me how to use this component in right way? thanks!

xiaomi_airconditioning_c1: Error on device update!
ValueError: 'heat' is not a valid OperationMode

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 292, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/srv/homeassistant/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 459, in async_device_update
    await self.async_update()
  File "/home/homeassistant/.homeassistant/custom_components/xiaomi_airconditioning_c1/climate.py", line 177, in async_update
    self._last_on_operation = HVACMode[state.mode.name].value
  File "/home/homeassistant/.homeassistant/custom_components/xiaomi_airconditioning_c1/climate.py", line 407, in mode
    return OperationMode(self.data['mode'])
  File "/srv/homeassistant/lib/python3.7/enum.py", line 310, in __call__
    return cls.__new__(cls, value)
  File "/srv/homeassistant/lib/python3.7/enum.py", line 564, in __new__
    raise exc
  File "/srv/homeassistant/lib/python3.7/enum.py", line 548, in __new__
    result = cls._missing_(value)
  File "/srv/homeassistant/lib/python3.7/enum.py", line 577, in _missing_
    raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: 'heat' is not a valid OperationMode

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.