mirror of
https://github.com/XiaoMi/ha_xiaomi_home.git
synced 2026-01-14 13:20:42 +08:00
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.
This commit is contained in:
parent
b37a249c11
commit
9e5ed442ea
@ -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(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user