Dry Level & Drying Time selection renders Unknown #70
Closed
opened 2023-06-12 14:26:43 +02:00 by frlequ
·
2 comments
No Branch/Tag Specified
main
v0.9
v0.8
v0.7
v0.11.0
v0.11.0-beta.1
v0.10.1
v0.10.1-beta.1
v0.10.0
v0.10.0-beta.1
v0.9.2-beta.1
v0.9.1
v0.9.1-beta.1
v0.9.0
v0.9.0-beta.10
v0.9.0-beta.9
v0.9.0-beta.8
v0.9.0-beta.7
v0.9.0-beta.6
v0.9.0-beta.5
v0.9.0-beta.4
v0.9.0-beta.3
v0.9.0-beta.2
v0.9.0-beta.1
v0.8.1
v0.8.1-beta.1
v0.8.0
v0.8.0-beta.10
v0.8.0-beta.9
v0.8.0-beta.8
v0.8.0-beta.7
v0.8.0-beta.6
v0.8.0-beta.5
v0.8.0-beta.4
v0.8.0-beta.3
v0.8.0-beta.2
v0.8.0-beta.1
v0.7.3
v0.7.3-beta.2
v0.7.3-beta.1
v0.7.2
v0.7.1
v0.7.0
v0.7.0-beta.8
v0.7.0-beta.7
v0.7.0-beta.6
v0.7.0-beta.5
v0.7.0-beta.4
v0.7.0-beta.3
v0.7.0-beta.2
v0.7.0-beta.1
v0.6.1
v0.6.0
v0.6.0-beta.8
v0.6.0-beta.7
v0.6.0-beta.6
v0.6.0-beta.5
v0.6.0-beta.4
v0.6.0-beta.3
v0.6.0-beta.2
v0.6.0-beta.1
v0.5.1
test
v0.5.1-beta.1
v0.5.0
v0.5.0-beta.5
v0.5.0-beta.4
v0.5.0-beta.3
v0.5.0-beta.2
v0.5.0-beta.1
v0.4.0
v0.3.0
v0.2.5
v0.2.4
v0.2.3
v0.2.2
v0.2.1
v0.2.0
v0.1.1
v0.1.0
Labels
Clear labels
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
Air conditioner (AC)
Air purifier (AP)
Air scanner (AS)
Authentication Error
Something isn't working
Candy
Dish washer (DW)
Improvements or additions to documentation
This issue or pull request already exists
New feature or request
Fridge (REF)
Good for newcomers
Haier
Extra attention is needed
Hob (IH)
Hood (HO)
Hoover
This doesn't seem right
Microwave (MW)
New Appliance Request
Oven (OV)
Issue in pyhOn
Further information is requested
Robot vacuum cleaner (RVC)
Tumble dryer (TD)
Washer dryer (WD)
Washing machine (WM)
Water Heater (WH)
Wine Cellar (WC)
This will not be worked on
No labels
bug
Milestone
No items
No Milestone
Projects
Clear projects
No projects
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: xiconfjs/hon#70
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Describe the bug
When changing Dry Level option there is an error and state does not change:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 205, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1910, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1950, in _execute_service
await cast(CallableServiceCall], Awaitable[None, handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 226, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 811, in entity_service_call
future.result() # pop exception if have
^^^^^^^^^^^^^^^
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 1034, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 851, in handle_entity_call
await result
File "/usr/src/homeassistant/homeassistant/components/select/__init_.py", line 106, in async_select_option
await entity.async_select_option(option)
File "/config/custom_components/hon/select.py", line 214, in async_select_option
self._device.settings[self.entity_description.key].value = option
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyhon/parameter/range.py", line 57, in value
value = str_to_float(value)
^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/site-packages/pyhon/parameter/range.py", line 10, in str_to_float
return float(str(string).replace(",", "."))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'no_dry'
To Reproduce
Steps to reproduce the behavior:
Select dropdown option from select.washer_dryer_drying_level
Expected behavior
Should change
Environment (please complete the following information):
Also, the "Drying Time" state does not update/reflect in HA. Instead renders Unknown.
Thank you.
Hi, thanks for reporting! I released a new beta, check it out 🙂
Works! Thank you!