File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
custom_components/plugwise Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 22
33from __future__ import annotations
44
5- import datetime as dt # pw-beta options
65from typing import Any
76
87from plugwise import Smile
@@ -283,7 +282,7 @@ def _create_options_schema(self, coordinator):
283282 default = self ._options .get (CONF_SCAN_INTERVAL , interval .seconds ),
284283 ): vol .All (cv .positive_int , vol .Clamp (min = 10 )),
285284 } # pw-beta
286-
285+
287286 if coordinator .api .smile_type == THERMOSTAT :
288287 schema .update ({
289288 vol .Optional (
@@ -295,7 +294,7 @@ def _create_options_schema(self, coordinator):
295294 default = self ._options .get (CONF_REFRESH_INTERVAL , 1.5 ),
296295 ): vol .All (vol .Coerce (float ), vol .Range (min = 1.5 , max = 10.0 )),
297296 }) # pw-beta
298-
297+
299298 return vol .Schema (schema )
300299
301300 async def async_step_none (
You can’t perform that action at this time.
0 commit comments