Skip to content

Commit

Permalink
fix: Resolve line length violations in config_flow.py
Browse files Browse the repository at this point in the history
- Shortened lines in custom_components/xiaomi_home/config_flow.py to comply with PEP 8's line length limit (80 characters).
- Addressed pylint warnings concerning line lengths on lines 489, 568, and 569.
  • Loading branch information
JimmyKmi committed Dec 19, 2024
1 parent b37a249 commit 9e5ed44
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions custom_components/xiaomi_home/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,8 @@ async def async_step_devices_filter(self, user_input=None):
self._home_selected[home_id] = home_info
self._area_name_rule = user_input.get('area_name_rule')
# Check if advanced options should be shown
show_advanced_options = user_input.get('show_advanced_options', False)
show_advanced_options = user_input.get(
'show_advanced_options', False)
# Storage device list
devices_list: dict[str, dict] = {
did: dev_info
Expand Down Expand Up @@ -565,8 +566,10 @@ async def display_device_filter_form(self, reason: str):

async def async_step_advanced_options(self, user_input=None):
if user_input is not None:
# Advanced options, the default values are specified alongside the definition of each variable
self._action_debug = user_input.get('action_debug', self._action_debug)
# Advanced options, the default values are specified alongside
# the definition of each variable
self._action_debug = user_input.get(
'action_debug', self._action_debug)
self._hide_non_standard_entities = user_input.get(
'hide_non_standard_entities', self._hide_non_standard_entities)
return self.async_create_entry(
Expand Down

0 comments on commit 9e5ed44

Please sign in to comment.