Skip to content

Commit

Permalink
bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
zxdavb committed Dec 31, 2024
1 parent c2d5059 commit a3b45b0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/evohomeasync/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ def temperature_status(self) -> EvoTemperatureStatusResponseT:

return {
"is_available": temp_status == "Measured",
} | ({} if temp != _TEMP_IS_NA else {"temperature": temp}) # type: ignore[return-value]
} | ({} if temp == _TEMP_IS_NA else {"temperature": temp}) # type: ignore[return-value]

@property
def temperature(self) -> float | None:
Expand Down
10 changes: 8 additions & 2 deletions tests/tests/__snapshots__/test_v0_installs.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,10 @@
false
...

''',
'one_touch_buttons': '''
!!python/tuple []

''',
'status': '''
can_search_for_contractors: true
Expand Down Expand Up @@ -1733,8 +1737,6 @@
'
temperature_status: 'is_available: false

temperature: null

'
'3432576':
config: "alert_settings:\n communication_failure_active: true\n communication_failure_minutes:\
Expand Down Expand Up @@ -2803,6 +2805,10 @@
false
...

''',
'one_touch_buttons': '''
!!python/tuple []

''',
'status': '''
can_search_for_contractors: true
Expand Down

0 comments on commit a3b45b0

Please sign in to comment.