Skip to content

Commit

Permalink
ruff fix
Browse files Browse the repository at this point in the history
  • Loading branch information
CyrilP committed May 31, 2024
1 parent 73ca23d commit b81fe21
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions custom_components/deltadore_tydom/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ async def async_step_import(self, import_config):
return await self.async_step_user(import_config)

async def async_step_user(self, user_input=None) -> config_entries.FlowResult:
"""Handle the initial step."""
_errors = {}
if user_input is not None:
if user_input.get(CONF_CONFIG_MODE) == CONF_MANUAL_MODE:
Expand All @@ -168,7 +169,7 @@ async def async_step_user(self, user_input=None) -> config_entries.FlowResult:
)

async def async_step_user_cloud(self, user_input=None) -> config_entries.FlowResult:
"""Handle the initial step."""
"""Handle the cloud connection step."""
# This goes through the steps to take the user through the setup process.
# Using this it is possible to update the UI and prompt for additional
# information. This example provides a single form (built from `DATA_SCHEMA`),
Expand Down Expand Up @@ -282,7 +283,7 @@ async def async_step_user_cloud(self, user_input=None) -> config_entries.FlowRes
)

async def async_step_user_manual(self, user_input=None) -> config_entries.FlowResult:
"""Handle the initial step."""
"""Handle the manual connection step."""
# This goes through the steps to take the user through the setup process.
# Using this it is possible to update the UI and prompt for additional
# information. This example provides a single form (built from `DATA_SCHEMA`),
Expand Down Expand Up @@ -432,7 +433,7 @@ async def async_step_discovery_confirm(self, user_input=None):
)

async def async_step_discovery_confirm_manual(self, user_input=None):
"""Confirm discovery."""
"""Confirm discovery manual."""
_errors = {}
if user_input is not None:
try:
Expand Down Expand Up @@ -504,9 +505,9 @@ async def async_step_discovery_confirm_manual(self, user_input=None):
}
),
)

async def async_step_discovery_confirm_cloud(self, user_input=None):
"""Confirm discovery."""
"""Confirm discovery cloud."""
_errors = {}
if user_input is not None:
try:
Expand Down

0 comments on commit b81fe21

Please sign in to comment.