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

last_read_state is a float number #6

Closed
jerryc05 opened this issue Jul 12, 2023 · 1 comment
Closed

last_read_state is a float number #6

jerryc05 opened this issue Jul 12, 2023 · 1 comment

Comments

@jerryc05
Copy link

the error message below should explain itself quite well:

2023-07-12 14:33:31.011 WARNING (MainThread) [smartrent.utils] Traceback (most recent call last):
  File "***/smartrent/utils.py", line 446, in _async_update_state_via_ws
    await device._update(formatted_resp)
  File "***/smartrent/device.py", line 148, in _update
    self._update_parser(event)
  File "***/smartrent/thermostat.py", line 163, in _update_parser
    self._current_temp = int(last_read_state)
ValueError: invalid literal for int() with base 10: '78.4'
@ZacheryThomas
Copy link
Owner

Should be fixed in the latest release: https://github.com/ZacheryThomas/smartrent.py/releases/tag/v0.4.2

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