Skip to content

Commit

Permalink
Fic verbose state check
Browse files Browse the repository at this point in the history
  • Loading branch information
Vaclav committed Feb 19, 2022
1 parent 18467af commit 3672691
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions custom_components/garbage_collection/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,10 @@ def step2_detail(self, user_input: Dict) -> bool:
"""Step 2 - enter detail that depend on frequency."""
self.errors.clear()
# Skip second step on blank frequency
if (
self._data[const.CONF_FREQUENCY] in const.BLANK_FREQUENCY
and not self._data[const.CONF_VERBOSE_FORMAT]
if self._data[
const.CONF_FREQUENCY
] in const.BLANK_FREQUENCY and not self._data.get(
const.CONF_VERBOSE_STATE, False
):
return True
if user_input is not None and user_input:
Expand Down

0 comments on commit 3672691

Please sign in to comment.