Error adding integration #6

Closed
opened 2023-03-14 15:53:17 +01:00 by peca89 · 3 comments
peca89 commented 2023-03-14 15:53:17 +01:00 (Migrated from github.com)

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.

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 commented 2023-03-14 19:15:05 +01:00 (Migrated from github.com)

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

Hi, please try the newest release, should be fixed there :slightly_smiling_face:
peca89 commented 2023-03-14 19:49:41 +01:00 (Migrated from github.com)

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
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 commented 2023-03-14 23:25:56 +01:00 (Migrated from github.com)

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

Ah shit, I don't expect that this case is possible... I created a new version, hope it works now :upside_down_face:
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: xiconfjs/pyhOn#6
No description provided.