Skip to content

Commit

Permalink
Update config_flow.py
Browse files Browse the repository at this point in the history
  • Loading branch information
MapoDan authored Nov 26, 2020
1 parent 41d6153 commit 03d0875
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions custom_components/programmable_thermostat/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 03d0875

Please sign in to comment.