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 22, 2020
1 parent 8e908b5 commit f7da323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/programmable_thermostat/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ async def async_step_final(self, user_input={}):
if user_input is not None and user_input != {}:
if self.are_third_step_data_valid(user_input):
self._data.update(user_input)
self._data[CONF_MIN_CYCLE_DURATION] = {'seconds': self.string_to_timedelta(self._data[CONF_MIN_CYCLE_DURATION]).seconds}
self._data[CONF_MIN_CYCLE_DURATION] = self.string_to_timedelta(self._data[CONF_MIN_CYCLE_DURATION])
final_data = {}
for key in self._data.keys():
if self._data[key] != "" and self._data[key] != []:
Expand Down

0 comments on commit f7da323

Please sign in to comment.