Skip to content

Commit

Permalink
Update calculation.py
Browse files Browse the repository at this point in the history
  • Loading branch information
basbruss committed May 23, 2024
1 parent cebef26 commit 30bbfc6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/adaptive_cover/calculation.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,13 @@ class ClimateCoverData:
def outside_temperature(self):
"""Get outside temperature."""
temp = None
if self.weather_entity:
temp = state_attr(self.hass, self.weather_entity, "temperature")
if self.outside_entity:
temp = get_safe_state(
self.hass,
self.outside_entity,
)
if self.weather_entity:
temp = state_attr(self.hass, self.weather_entity, "temperature")
return temp

@property
Expand Down

0 comments on commit 30bbfc6

Please sign in to comment.