Skip to content

Commit

Permalink
Merge pull request #60 from basbruss/dev
Browse files Browse the repository at this point in the history
ruff formatting
  • Loading branch information
basbruss authored Mar 6, 2024
2 parents 1d5a816 + a613609 commit a799523
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions custom_components/adaptive_cover/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
CONF_WEATHER_ENTITY,
CONF_WEATHER_STATE,
DOMAIN,
STRATEGY_MODES,
SensorType,
)

Expand Down Expand Up @@ -225,7 +224,7 @@ async def async_step_vertical(self, user_input: dict[str, Any] | None = None):
self.type_blind = SensorType.BLIND
if user_input is not None:
self.config.update(user_input)
if self.config[CONF_CLIMATE_MODE] == True:
if self.config[CONF_CLIMATE_MODE] is True:
return await self.async_step_climate()
return await self.async_step_update()
return self.async_show_form(step_id="vertical", data_schema=VERTICAL_OPTIONS)
Expand All @@ -235,7 +234,7 @@ async def async_step_horizontal(self, user_input: dict[str, Any] | None = None):
self.type_blind = SensorType.AWNING
if user_input is not None:
self.config.update(user_input)
if self.config[CONF_CLIMATE_MODE] == True:
if self.config[CONF_CLIMATE_MODE] is True:
return await self.async_step_climate()
return await self.async_step_update()
return self.async_show_form(
Expand All @@ -247,7 +246,7 @@ async def async_step_tilt(self, user_input: dict[str, Any] | None = None):
self.type_blind = SensorType.TILT
if user_input is not None:
self.config.update(user_input)
if self.config[CONF_CLIMATE_MODE] == True:
if self.config[CONF_CLIMATE_MODE] is True:
return await self.async_step_climate()
return await self.async_step_update()
return self.async_show_form(step_id="tilt", data_schema=TILT_OPTIONS)
Expand Down
Empty file.

0 comments on commit a799523

Please sign in to comment.