Skip to content

Commit bc81209

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 665548d commit bc81209

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

custom_components/plugwise/config_flow.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
from __future__ import annotations
44

5-
import datetime as dt # pw-beta options
65
from typing import Any
76

87
from plugwise import Smile
@@ -231,7 +230,7 @@ async def async_step_user(
231230
user_input[CONF_PORT] = self.discovery_info.port
232231
user_input[CONF_USERNAME] = self._username
233232

234-
# Ensure a timeout-value is available, required for validation
233+
# Ensure a timeout-value is available, required for validation
235234
user_input[CONF_TIMEOUT] = self._timeout
236235
try:
237236
api = await validate_input(self.hass, user_input)
@@ -284,7 +283,7 @@ def _create_options_schema(self, coordinator):
284283
default=self._options.get(CONF_SCAN_INTERVAL, interval.seconds),
285284
): vol.All(cv.positive_int, vol.Clamp(min=10)),
286285
} # pw-beta
287-
286+
288287
if coordinator.api.smile_type == THERMOSTAT:
289288
schema.update({
290289
vol.Optional(
@@ -296,7 +295,7 @@ def _create_options_schema(self, coordinator):
296295
default=self._options.get(CONF_REFRESH_INTERVAL, 1.5),
297296
): vol.All(vol.Coerce(float), vol.Range(min=1.5, max=10.0)),
298297
}) # pw-beta
299-
298+
300299
return vol.Schema(schema)
301300

302301
async def async_step_none(

0 commit comments

Comments
 (0)