Commit Graph

12 Commits

Author SHA1 Message Date
JimmyKmi
ff2f96eb76
Merge 0aa11a2ffa into 9af59e28bd 2024-12-24 01:19:07 +08:00
Paul Shawn
c1867e2baf
fix: fix type error, wrong use of any and Any (#338)
* fix: fix type error, wrong use of any and Any

* fix: wrong use of session close

* fix: fix test_lan type error

* fix: remove __del__

* feat: oauth, http add deinit_async
2024-12-22 10:46:58 +08:00
Paul Shawn
02ddf8df56
fix: fix lan ctrl filter logic (#303)
* style: rename devices_filter to homes_select

* fix: fix miot_lan update_devices

* fix: async blocking call
2024-12-21 11:08:36 +08:00
JimmyKmi
a10c37f612 format: undo format change 2024-12-20 18:29:35 +08:00
JimmyKmi
9e5ed442ea 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.
2024-12-20 02:14:29 +08:00
jimmykmi
b37a249c11 Merge branch 'main' into advanced-options
# Conflicts:
#	custom_components/xiaomi_home/config_flow.py
2024-12-19 02:45:59 +08:00
jimmykmi
f581ad6ce2 feat: Add advanced configuration step
- Added an "Advanced Configuration Options" step to the config flow.
- Moved `action_debug` and `hide_non_standard_entities` configurations to the new step.
- Introduced a checkbox "Show Advanced Configuration Options" in the devices filter form.
- Only show the advanced step if the user opts in via the checkbox.

This change enhances the configuration process by allowing users to access advanced settings only if needed, keeping the initial setup simple.
2024-12-19 02:09:09 +08:00
topsworld
99e654f0c7 style: remove invalid space 2024-12-18 10:35:29 +08:00
topsworld
ded158e0e6 style: ignore pylint wanring ('inconsistent-quotes') for config_flow.py 2024-12-16 10:44:01 +08:00
topsworld
7a336c31fe style: ignore pylint wanring ('inconsistent-quotes') 2024-12-16 10:41:30 +08:00
topsworld
b7592cd4e2 style: update config flow display format 2024-12-12 20:57:00 +08:00
topsworld
838fff399b feat: first commit 2024-12-10 17:36:32 +08:00