Dry Level & Drying Time selection renders Unknown #70

Closed
opened 2023-06-12 14:26:43 +02:00 by frlequ · 2 comments
frlequ commented 2023-06-12 14:26:43 +02:00 (Migrated from github.com)

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):

  • Home Assistant Version:2023.6.1
  • hOn Integration Version 0.9.-beta 9
  • pyhOn Version: 0.13.0

Also, the "Drying Time" state does not update/reflect in HA. Instead renders Unknown.
Thank you.

**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(Callable[[ServiceCall], 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):** - Home Assistant Version:2023.6.1 - hOn Integration Version 0.9.-beta 9 - pyhOn Version: 0.13.0 Also, the "Drying Time" state does not update/reflect in HA. Instead renders Unknown. Thank you.
Andre0512 commented 2023-06-16 00:09:26 +02:00 (Migrated from github.com)

Hi, thanks for reporting! I released a new beta, check it out 🙂

Hi, thanks for reporting! I released a new beta, check it out :slightly_smiling_face:
frlequ commented 2023-06-16 08:25:39 +02:00 (Migrated from github.com)

Works! Thank you!

Works! Thank you!
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/hon#70
No description provided.