diff --git a/custom_components/adaptive_cover/config_flow.py b/custom_components/adaptive_cover/config_flow.py index 613cccd..f020cc4 100644 --- a/custom_components/adaptive_cover/config_flow.py +++ b/custom_components/adaptive_cover/config_flow.py @@ -42,7 +42,6 @@ CONF_WEATHER_ENTITY, CONF_WEATHER_STATE, DOMAIN, - STRATEGY_MODES, SensorType, ) @@ -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) @@ -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( @@ -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) diff --git a/custom_components/adaptive_cover/services.yaml b/custom_components/adaptive_cover/services.yaml deleted file mode 100644 index e69de29..0000000