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

adjust overflowed temperature display #14

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -323,14 +323,16 @@ async def async_update(self):
ATTR_HVAC_MODE: state.mode.name.lower() if self._state else "off",
}
)
if self._state_attrs[ATTR_TEMPERATURE] == 65535:
self._state_attrs[ATTR_TEMPERATURE] = None
self._last_on_operation = OperationMode[state.mode.name].value
if state.power == "off":
self._hvac_mode = HVAC_MODE_OFF
self._state = False
else:
self._hvac_mode = self._last_on_operation
self._state = True
self._target_temperature = state.target_temperature
self._target_temperature = self._state_attrs[ATTR_TEMPERATURE]
self._fan_mode = state.fan_speed
self._swing_mode = state.swing_mode

Expand Down