From 03d08754c6d6e589b6f30b94be307c781009d142 Mon Sep 17 00:00:00 2001 From: MapoDan <42698485+MapoDan@users.noreply.github.com> Date: Thu, 26 Nov 2020 21:06:40 +0100 Subject: [PATCH] Update config_flow.py --- custom_components/programmable_thermostat/config_flow.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/custom_components/programmable_thermostat/config_flow.py b/custom_components/programmable_thermostat/config_flow.py index d3deaa6..5b88690 100644 --- a/custom_components/programmable_thermostat/config_flow.py +++ b/custom_components/programmable_thermostat/config_flow.py @@ -189,11 +189,7 @@ def string_to_timedelta(self, string): if string is None or string == "": return [] string = string.groupdict() - time_params = {} - for name in string.keys(): - if string[name]: - time_params[name] = int(string[name]) - return timedelta(**time_params) + return string """ SHOW CONFIGURATION.YAML ENTITIES """ async def async_step_import(self, user_input):