Skip to content

Commit

Permalink
Update coordinator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
basbruss committed Mar 11, 2024
1 parent fc93b5a commit 9571c94
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/adaptive_cover/coordinator.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ async def _async_update_data(self) -> AdaptiveCoverData:
self.config_entry.options.get(CONF_TILT_MODE),
]

climate_data = [
climate_data_var = [
self.hass,
self.config_entry.options.get(CONF_TEMP_ENTITY),
self.config_entry.options.get(CONF_TEMP_LOW),
Expand All @@ -137,7 +137,7 @@ async def _async_update_data(self) -> AdaptiveCoverData:
self.hass, *pos_sun, *common_data, *tilt_data
)

climate = ClimateCoverData(*climate_data)
climate = ClimateCoverData(*climate_data_var)

default_state = round(NormalCoverState(cover_data).get_state())
climate_state = round(ClimateCoverState(cover_data, climate).get_state())
Expand Down

0 comments on commit 9571c94

Please sign in to comment.