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

Overkiz atlantic_electrical_towel_dryer.py KeyError: 'auto' #140461

Open
technarf opened this issue Mar 12, 2025 · 1 comment
Open

Overkiz atlantic_electrical_towel_dryer.py KeyError: 'auto' #140461

technarf opened this issue Mar 12, 2025 · 1 comment
Assignees

Comments

@technarf
Copy link

The problem

Hi, I don't really know if it is an issue or a misconfiguration in my system but each time the core updates, I have an error which appears (see diagnostics information below)

I've found a workaround changing atlantic_electrical_towel_dryer.py line :
return OVERKIZ_TO_HVAC_MODE[ cast(str, self.executor.select_state(OverkizState.CORE_OPERATING_MODE)) ]
to
return OVERKIZ_TO_HVAC_MODE.get( cast(str, self.executor.select_state(OverkizState.CORE_OPERATING_MODE)), "heat" )
but it is only a workaround because it seems auto key seems to not be supported anymore.
Thanks for your help

What version of Home Assistant Core has the issue?

2025.3.2

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

Overkiz

Link to integration documentation on our website

https://www.home-assistant.io/integrations/overkiz

Diagnostics information

Enregistreur: homeassistant
Source: components/overkiz/climate/atlantic_electrical_towel_dryer.py:73
S'est produit pour la première fois: 16:42:47 (199 occurrences)
Dernier enregistrement: 18:21:47

Error doing job: Task exception was never retrieved (None)
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 268, in _handle_refresh_interval
await self._async_refresh(log_failures=True, scheduled=True)
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 479, in _async_refresh
self.async_update_listeners()
~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 178, in async_update_listeners
update_callback()
~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/update_coordinator.py", line 559, in _handle_coordinator_update
self.async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1023, in async_write_ha_state
self._async_write_ha_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1148, in _async_write_ha_state
self.__async_calculate_state()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1085, in __async_calculate_state
state = self._stringify_state(available)
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1029, in _stringify_state
if (state := self.state) is None:
^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/climate/init.py", line 352, in state
hvac_mode = self.hvac_mode
^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/components/overkiz/climate/atlantic_electrical_towel_dryer.py", line 73, in hvac_mode
return OVERKIZ_TO_HVAC_MODE[
~~~~~~~~~~~~~~~~~~~~^
cast(str, self.executor.select_state(OverkizState.CORE_OPERATING_MODE))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
]
^
KeyError: 'auto'

Example YAML snippet

Anything in the logs that might be useful for us?

Additional information

No response

@home-assistant
Copy link

Hey there @iMicknl, mind taking a look at this issue as it has been labeled with an integration (overkiz) you are listed as a code owner for? Thanks!

Code owner commands

Code owners of overkiz can trigger bot actions by commenting:

  • @home-assistant close Closes the issue.
  • @home-assistant rename Awesome new title Renames the issue.
  • @home-assistant reopen Reopen the issue.
  • @home-assistant unassign overkiz Removes the current integration label and assignees on the issue, add the integration domain after the command.
  • @home-assistant add-label needs-more-information Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue.
  • @home-assistant remove-label needs-more-information Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


overkiz documentation
overkiz source
(message by IssueLinks)

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

No branches or pull requests

2 participants