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

Error adding integration #6

Closed
peca89 opened this issue Mar 14, 2023 · 3 comments
Closed

Error adding integration #6

peca89 opened this issue Mar 14, 2023 · 3 comments

Comments

@peca89
Copy link

peca89 commented Mar 14, 2023

Home Assistant throws the following error when adding new integration.

Error setting up entry p**********@gmail.com for hon
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/hon/__init__.py", line 32, in async_setup_entry
    await hon.setup()
  File "/usr/local/lib/python3.10/site-packages/pyhon/api.py", line 60, in setup
    await asyncio.gather(*[
  File "/usr/local/lib/python3.10/site-packages/pyhon/device.py", line 116, in load_commands
    await self._recover_last_command_states(commands)
  File "/usr/local/lib/python3.10/site-packages/pyhon/device.py", line 95, in _recover_last_command_states
    for key, data in command.settings.items():
  File "/usr/local/lib/python3.10/site-packages/pyhon/commands.py", line 70, in settings
    return {s: self._parameters[s] for s in self.setting_keys}
  File "/usr/local/lib/python3.10/site-packages/pyhon/commands.py", line 70, in <dictcomp>
    return {s: self._parameters[s] for s in self.setting_keys}
KeyError: 'airWashPara3'

The only device I have in my hOn account is a Washer-Dryer combination HWD90xxxxxx. I tried running pyhOn on my PC, but it also throws a bunch of errors after entering username and password.

@Andre0512 Andre0512 transferred this issue from Andre0512/hon Mar 14, 2023
@Andre0512
Copy link
Owner

Hi, please try the newest release, should be fixed there 🙂

@peca89
Copy link
Author

peca89 commented Mar 14, 2023

Different one this time 😕

Error setting up entry p*****@gmail.com for hon
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 383, in async_setup
    result = await component.async_setup_entry(hass, self)
  File "/config/custom_components/hon/__init__.py", line 32, in async_setup_entry
    await hon.setup()
  File "/usr/local/lib/python3.10/site-packages/pyhon/api.py", line 60, in setup
    await asyncio.gather(*[
  File "/usr/local/lib/python3.10/site-packages/pyhon/device.py", line 117, in load_commands
    await self._recover_last_command_states(commands)
  File "/usr/local/lib/python3.10/site-packages/pyhon/device.py", line 98, in _recover_last_command_states
    data.value = parameters.get(key)
  File "/usr/local/lib/python3.10/site-packages/pyhon/parameter.py", line 82, in value
    raise ValueError(f"Allowed: min {self._min} max {self._max} step {self._step}")
ValueError: Allowed: min 3 max 12 step 3

@Andre0512
Copy link
Owner

Andre0512 commented Mar 14, 2023

Ah shit, I don't expect that this case is possible... I created a new version, hope it works now 🙃

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

No branches or pull requests

2 participants