From 9e5ed442eaf2dc2e7d3deee12d5b81420f962361 Mon Sep 17 00:00:00 2001 From: JimmyKmi Date: Fri, 20 Dec 2024 02:14:29 +0800 Subject: [PATCH] fix: Resolve line length violations in config_flow.py - 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. --- custom_components/xiaomi_home/config_flow.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/custom_components/xiaomi_home/config_flow.py b/custom_components/xiaomi_home/config_flow.py index 50eee36..3298f9f 100644 --- a/custom_components/xiaomi_home/config_flow.py +++ b/custom_components/xiaomi_home/config_flow.py @@ -486,7 +486,8 @@ class XiaomiMihomeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): 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 @@ -565,8 +566,10 @@ class XiaomiMihomeConfigFlow(config_entries.ConfigFlow, domain=DOMAIN): 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(