Skip to content

Commit

Permalink
fix outdoor high variable
Browse files Browse the repository at this point in the history
  • Loading branch information
basbruss committed Aug 1, 2024
1 parent 1a184d8 commit 04c1ab7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion custom_components/adaptive_cover/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,7 +306,7 @@ def outside_high(self) -> bool:
def is_summer(self) -> bool:
"""Check if temperature is over threshold."""
if self.temp_high is not None and self.get_current_temperature is not None:
return self.get_current_temperature > self.temp_high and self.outdoor_high
return self.get_current_temperature > self.temp_high and self.outside_high
return False

@property
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ classifiers = [
"Framework :: AsyncIO",
"Intended Audience :: Developers",
"Natural Language :: English",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3",
]
description = "Adaptive Cover"
Expand Down

0 comments on commit 04c1ab7

Please sign in to comment.