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 exception when Jandy is in service mode #52911

Closed olyashok closed 3 years ago

olyashok commented 3 years ago

The problem

This exception gets raised when panel is in a service mode

2021-07-12 07:14:21 ERROR (MainThread) [homeassistant.util.logging] Exception in async_write_ha_state when dispatching 'iaqualink': () Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 368, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 402, in _async_write_ha_state state = self._stringify_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 374, in _stringify_state state = self.state File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 176, in state return self.hvac_mode File "/usr/src/homeassistant/homeassistant/components/iaqualink/climate.py", line 70, in hvac_mode state = AqualinkState(self.heater.state) File "/usr/local/lib/python3.8/enum.py", line 339, in call return cls.new(cls, value) File "/usr/local/lib/python3.8/enum.py", line 662, in new raise ve_exc ValueError: '' is not a valid AqualinkState

What is version of Home Assistant Core has the issue?

2021

What was the last working version of Home Assistant Core?

No response

What type of installation are you running?

Home Assistant Supervised

Integration causing the issue

iaqualink

Link to integration documentation on our website

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

2021-07-12 07:14:21 ERROR (MainThread) [homeassistant.util.logging] Exception in async_write_ha_state when dispatching 'iaqualink': ()
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 368, in async_write_ha_state
    self._async_write_ha_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 402, in _async_write_ha_state
    state = self._stringify_state()
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 374, in _stringify_state
    state = self.state
  File "/usr/src/homeassistant/homeassistant/components/climate/__init__.py", line 176, in state
    return self.hvac_mode
  File "/usr/src/homeassistant/homeassistant/components/iaqualink/climate.py", line 70, in hvac_mode
    state = AqualinkState(self.heater.state)
  File "/usr/local/lib/python3.8/enum.py", line 339, in __call__
    return cls.__new__(cls, value)
  File "/usr/local/lib/python3.8/enum.py", line 662, in __new__
    raise ve_exc
ValueError: '' is not a valid AqualinkState

Additional information

No response

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

iaqualink documentation iaqualink source (message by IssueLinks)

probot-home-assistant[bot] commented 3 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)