home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
72.81k stars 30.51k forks source link

iAqualink integration throws exceptions if panel is in Service Mode #39168

Closed drjjr2 closed 4 years ago

drjjr2 commented 4 years ago

The problem

Environment

Problem-relevant configuration.yaml

Traceback/Error logs

2020-08-22 14:42:44 ERROR (MainThread) [homeassistant.util.logging] Exception in async_write_ha_state when dispatching 'iaqualink': ()
ValueError: '' is not a valid AqualinkState

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 281, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 305, in _async_write_ha_state
    sstate = self.state
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 173, in state
    return self.hvac_mode
  File "/usr/src/homeassistant/homeassistant/components/iaqualink/climate.py", line 69, in hvac_mode
    state = AqualinkState(self.heater.state)
  File "/usr/local/lib/python3.8/enum.py", line 304, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.8/enum.py", line 595, in __new__
    raise exc
  File "/usr/local/lib/python3.8/enum.py", line 579, in __new__
    result = cls._missing_(value)
  File "/usr/local/lib/python3.8/enum.py", line 608, in _missing_
    raise ValueError("%r is not a valid %s" % (value, cls.__name__))
ValueError: '' is not a valid AqualinkState

Additional information

Once I put the panel back in "Auto" the errors stopped.

probot-home-assistant[bot] commented 4 years ago

Hey there @flz, mind taking a look at this issue as its been labeled with an integration (iaqualink) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

drjjr2 commented 4 years ago

I have been unable to recreate this reliably. I can wake up to a log filled with SSL errors one day and then nothing another day.

olyashok commented 3 years ago

I have this issue as well - exception when in Service mode. Did you end up resolving it?