Integration fails to reload after adding Hoover H-Dish 500 #134
Labels
No Label
air conditioner
air purifier
air scanner
authentication error
bug
candy
dish washer
documentation
duplicate
enhancement
fridge
good first issue
haier
help wanted
hob
hood
hoover
invalid
microwave
new appliance
oven
pyhOn
question
robot vacuum cleaner
tumble dryer
washer dryer
washing machine
water heater
wine cellar
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xiconfjs/hon#134
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Describe the bug
Having used hon integration for some time with my washing machine and tumbledryer, I recently purchased a Hoover H-dish 500 dishwasher. As soon as I added this device to the hOn app and reloaded the HA integration, it produced an error.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Integration works with HA integration
Screenshots
If applicable, add screenshots to help explain your problem.
Environment (please complete the following information):
Additional context
Home Assistant Logs
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/config_entries.py", line 402, in async_setup
result = await component.async_setup_entry(hass, self)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/config/custom_components/hon/init.py", line 32, in async_setup_entry
hon = await Hon(
^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyhon/hon.py", line 66, in create
await self.setup()
File "/usr/local/lib/python3.11/site-packages/pyhon/hon.py", line 104, in setup
await self._create_appliance(appliance, self.api)
File "/usr/local/lib/python3.11/site-packages/pyhon/hon.py", line 84, in _create_appliance
await asyncio.gather(
File "/usr/local/lib/python3.11/site-packages/pyhon/appliance.py", line 180, in load_commands
await command_loader.load_commands()
File "/usr/local/lib/python3.11/site-packages/pyhon/command_loader.py", line 60, in load_commands
self._get_commands()
File "/usr/local/lib/python3.11/site-packages/pyhon/command_loader.py", line 101, in _get_commands
if command := self._parse_command(data, name):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyhon/command_loader.py", line 124, in _parse_command
if category := self._parse_categories(data, command_name):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyhon/command_loader.py", line 134, in _parse_categories
if command := self._parse_command(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyhon/command_loader.py", line 117, in _parse_command
return HonCommand(
^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyhon/commands.py", line 40, in init
self._load_parameters(attributes)
File "/usr/local/lib/python3.11/site-packages/pyhon/commands.py", line 94, in _load_parameters
for name, data in items.items():
^^^^^^^^^^^
AttributeError: 'str' object has no attribute 'items'
Thanks @Andre0512, integration appears to load successfully now