Skip to content

Commit

Permalink
small merge fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
basbruss committed Apr 11, 2024
1 parent cc5b80c commit b027cce
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions custom_components/adaptive_cover/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
CONF_HEIGHT_WIN,
CONF_INVERSE_STATE,
CONF_LENGTH_AWNING,
CONF_MANUAL_OVERRIDE_DURATION,
CONF_MANUAL_OVERRIDE_RESET,
CONF_MAX_POSITION,
CONF_MODE,
CONF_OUTSIDETEMP_ENTITY,
Expand Down Expand Up @@ -443,9 +445,12 @@ async def async_step_automation(self, user_input: dict[str, Any] | None = None):
if user_input is not None:
self.options.update(user_input)
return await self._update_options()
return self.async_show_form(step_id="automation", data_schema=self.add_suggested_values_to_schema(
return self.async_show_form(
step_id="automation",
data_schema=self.add_suggested_values_to_schema(
AUTOMATION_CONFIG, user_input or self.options
))
),
)

async def async_step_blind(self, user_input: dict[str, Any] | None = None):
"""Adjust blind parameters."""
Expand Down
2 changes: 1 addition & 1 deletion custom_components/adaptive_cover/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

from __future__ import annotations

import logging
from typing import Any

from homeassistant.components.switch import SwitchDeviceClass, SwitchEntity
Expand All @@ -15,6 +14,7 @@
from homeassistant.helpers.update_coordinator import CoordinatorEntity

from .const import (
_LOGGER,
CONF_CLIMATE_MODE,
CONF_ENTITIES,
CONF_OUTSIDETEMP_ENTITY,
Expand Down

0 comments on commit b027cce

Please sign in to comment.