Closed tubaman closed 5 years ago
Here's a PR: https://github.com/mhrivnak/radiotherm/pull/25
Note: I've seen these transient errors in the field via home assistant.
@mhrivnak, any thoughts on this?
According to @TD22057's comment on that PR, this may cause issues for home assistant, since they apparently rely on this library returning -1 when there are issues.
The relevant PR has been merged, I will submit changes for homeassistant when I make a new release here.
The API developer guide in section 2.7.3 states that tmode and/or temp could return a -1 in the case of a transient error within the thermostat. Today these values get returned as-is. We should instead handle these by raising an exception.