22
33from __future__ import annotations
44
5- import datetime as dt # pw-beta options
65from typing import Any
76
87from 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