Skip to content

Commit

Permalink
ruff formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
basbruss committed Mar 6, 2024
1 parent 1d5a816 commit a613609
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 a613609

Please sign in to comment.