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

Climate Control Error: ValueError: could not convert string to float: 'off' #21

Closed
syKevinPeng opened this issue Jul 30, 2023 · 1 comment
Assignees

Comments

@syKevinPeng
Copy link

When I try to switch the thermostat on and off using the HA UI, I got the following error.

File "/usr/local/lib/python3.11/site-packages/smartrent/utils.py", line 446, in _async_update_state_via_ws
await device._update(formatted_resp)
File "/usr/local/lib/python3.11/site-packages/smartrent/device.py", line 148, in _update
self._update_parser(event)
File "/usr/local/lib/python3.11/site-packages/smartrent/thermostat.py", line 154, in _update_parser
last_read_state_int = int(float(last_read_state_str))
^^^^^^^^^^^^^^^^^^^^^^^^^^
ValueError: could not convert string to float: 'off'

@ZacheryThomas ZacheryThomas self-assigned this Jul 30, 2023
@ZacheryThomas
Copy link
Owner

Hello @syKevinPeng! This issue should be fixed in the latest release:
https://github.com/ZacheryThomas/homeassistant-smartrent/releases/tag/v0.4.3

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