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

[bug] Temperature value null in some edge cases #230

Closed
swingerman opened this issue Jul 4, 2024 · 1 comment · Fixed by #242
Closed

[bug] Temperature value null in some edge cases #230

swingerman opened this issue Jul 4, 2024 · 1 comment · Fixed by #242
Assignees
Labels
bug Something isn't working

Comments

@swingerman
Copy link
Owner

swingerman commented Jul 4, 2024

          > Thanks for sharing this. I am looking into it.

btw

  File "/config/custom_components/dual_smart_thermostat/climate.py", line 949, in _async_control_climate
    await self._async_control_cooling(time, force)
  File "/config/custom_components/dual_smart_thermostat/climate.py", line 1133, in _async_control_cooling
    too_cold = self._is_too_cold()
               ^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/dual_smart_thermostat/climate.py", line 1470, in _is_too_cold
    return target_temp >= self._cur_temp + self._cold_tolerance
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: '>=' not supported between instances of 'NoneType' and 'float'

Originally posted by @10der in #210 (comment)

Also here:
#210 (comment)

@swingerman swingerman self-assigned this Jul 4, 2024
@swingerman swingerman added the bug Something isn't working label Jul 4, 2024
@swingerman swingerman pinned this issue Jul 4, 2024
@swingerman swingerman unpinned this issue Jul 9, 2024
@swingerman
Copy link
Owner Author

closed by #242

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant