Xiaomi Home Integration for Home Assistant
This report presents the forensic synthetic code analysis of XiaoMi/ha_xiaomi_home, a Python project with 22,061 GitHub stars. SynthScan v2.0 examined 32,975 lines of code across 97 source files, recording 261 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 11.9 places this repository in the Low AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 261 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | custom_components/xiaomi_home/event.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/cover.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/sensor.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/fan.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/light.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/number.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/humidifier.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/media_player.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/__init__.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/notify.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/vacuum.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/switch.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/button.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/text.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/binary_sensor.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/select.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/water_heater.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/climate.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/device_tracker.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/config_flow.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_mips.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_network.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_lan.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_storage.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_i18n.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_client.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_device.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/common.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/web_pages.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_error.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_mdns.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/const.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_spec.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | custom_components/xiaomi_home/miot/miot_cloud.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| HIGH | …stom_components/xiaomi_home/miot/specs/specv2entity.py | 0 | copyright (c) 2024 xiaomi corporation. the ownership and intellectual property rights of xiaomi home assistant integrati | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/test_spec.py | 59 | async def test_spec_random_parse_async(test_cache_path, test_lang): | CODE |
| LOW | test/test_storage.py | 94 | async def test_multi_task_load_async(test_cache_path): | CODE |
| LOW | test/test_storage.py | 115 | async def test_file_save_load_async(test_cache_path): | CODE |
| LOW | test/test_network.py | 13 | async def test_network_monitor_loop_async(): | CODE |
| LOW | test/test_network.py | 17 | async def on_network_status_changed(status: bool): | CODE |
| LOW | test/test_mips.py | 81 | async def on_mips_state_changed_async(key: str, state: bool): | CODE |
| LOW | test/test_mips.py | 84 | async def on_dev_list_changed_async( | CODE |
| LOW | test/test_mips.py | 193 | async def on_mips_state_changed_async(key: str, state: bool): | CODE |
| LOW | test/test_cloud.py | 86 | async def test_miot_oauth_refresh_token( | CODE |
| LOW | test/test_cloud.py | 138 | async def test_miot_cloud_get_nickname_async( | CODE |
| LOW | test/test_cloud.py | 167 | async def test_miot_cloud_get_uid_async( | CODE |
| LOW | test/test_cloud.py | 199 | async def test_miot_cloud_get_homeinfos_async( | CODE |
| LOW | test/test_cloud.py | 245 | async def test_miot_cloud_get_devices_async( | CODE |
| LOW | test/test_cloud.py | 297 | async def test_miot_cloud_get_devices_with_dids_async( | CODE |
| LOW | test/test_cloud.py | 418 | async def test_miot_cloud_get_prop_async( | CODE |
| LOW | test/test_cloud.py | 455 | async def test_miot_cloud_get_props_async( | CODE |
| LOW | test/test_cloud.py | 494 | async def test_miot_cloud_set_prop_async( | CODE |
| LOW | test/test_cloud.py | 545 | async def test_miot_cloud_action_async( | CODE |
| LOW | custom_components/xiaomi_home/cover.py | 214 | def _position_changed_handler(self, prop: MIoTSpecProperty, | CODE |
| LOW | custom_components/xiaomi_home/media_player.py | 270 | async def async_media_previous_track(self) -> None: | CODE |
| LOW | custom_components/xiaomi_home/__init__.py | 325 | async def async_remove_config_entry_device( | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 314 | async def async_step_network_detect_config( | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 394 | async def __show_network_detect_config_form(self, reason: str): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 740 | async def async_step_advanced_options( | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 789 | async def async_step_devices_filter( | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 866 | async def __show_devices_filter_form(self, reason: str): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1308 | async def async_step_config_options(self, user_input=None): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1405 | async def async_step_update_user_info(self, user_input=None): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1543 | async def async_step_devices_filter( | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1609 | async def __show_devices_filter_form(self, reason: str): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1706 | async def update_devices_done_async(self): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1722 | async def async_step_update_trans_rules(self, user_input=None): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1758 | async def async_step_update_lan_ctrl_config(self, user_input=None): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1821 | async def async_step_network_detect_config( | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1903 | async def __show_network_detect_config_form(self, reason: str): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1933 | async def async_step_config_confirm(self, user_input=None): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 2140 | def _handle_network_detect_addr( | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 722 | def __mips_sub_internal_pending_handler(self, ctx: Any) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 816 | def __mips_start_connect_tries(self) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 842 | def __get_next_reconnect_time(self) -> float: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 1062 | def __unreg_broadcast_external(self, topic: str) -> bool: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 1405 | async def get_action_group_list_async( | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 1417 | async def exec_action_group_list_async( | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 1611 | def __unreg_broadcast_external(self, topic) -> bool: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_network.py | 332 | def __call_network_info_change( | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_network.py | 338 | async def __update_status_and_info_async(self) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 911 | async def __on_network_info_change_external_async( | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 1141 | def __update_subscribe_option(self, options: dict) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_storage.py | 605 | async def user_cert_remaining_time_async( | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 491 | def hide_non_standard_entities(self) -> bool: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 496 | def display_devices_changed_notify(self) -> list[str]: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 513 | def display_devices_changed_notify(self, value: list[str]) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 940 | def __request_refresh_auth_info(self, delay_sec: int) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 949 | def __request_refresh_user_cert(self, delay_sec: int) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1029 | async def __on_network_status_changed(self, status: bool) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1049 | async def __on_mips_service_state_change( | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1091 | async def __on_mips_cloud_state_changed( | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1129 | async def __on_mips_local_state_changed( | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1175 | async def __on_miot_lan_state_change(self, state: bool) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1223 | def __on_cloud_device_state_changed( | CODE |
| 34 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | custom_components/xiaomi_home/__init__.py | 276 | except Exception as err: | CODE |
| MEDIUM | custom_components/xiaomi_home/config_flow.py | 1190 | def async_step_oauth(self, user_input=None): | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 387 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 467 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 529 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 550 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 565 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 632 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 708 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1160 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1232 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1264 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1435 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1445 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 1896 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 2084 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 2156 | except Exception: | CODE |
| LOW | custom_components/xiaomi_home/config_flow.py | 2166 | except Exception: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 546 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 569 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 609 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 744 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM | custom_components/xiaomi_home/miot/miot_mips.py | 591 | def __mqtt_loop_handler(self) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_network.py | 236 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_network.py | 293 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_network.py | 303 | except Exception: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM | custom_components/xiaomi_home/miot/miot_network.py | 208 | def get_network_status_async(self) -> bool: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 282 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 597 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 1053 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 1197 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 1226 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 1267 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 1360 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_storage.py | 766 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_i18n.py | 87 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| MEDIUM | custom_components/xiaomi_home/miot/miot_client.py | 536 | def refresh_oauth_info_async(self) -> bool: | CODE |
| MEDIUM | custom_components/xiaomi_home/miot/miot_client.py | 594 | def refresh_user_cert_async(self) -> bool: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 584 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 742 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1326 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1336 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1456 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 1687 | except Exception as err: # pylint:disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_device.py | 822 | except Exception: # pylint: disable=broad-except | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 389 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 594 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 860 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 871 | except Exception as err: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 887 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 961 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 1041 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 1129 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 1180 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 1349 | except Exception as err: # pylint: disable=broad-exception-caught | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | test/check_rule_format.py | 153 | CODE | |
| LOW | test/check_rule_format.py | 268 | CODE | |
| LOW | custom_components/xiaomi_home/cover.py | 67 | CODE | |
| LOW | custom_components/xiaomi_home/cover.py | 111 | CODE | |
| LOW | custom_components/xiaomi_home/sensor.py | 65 | CODE | |
| LOW | custom_components/xiaomi_home/fan.py | 110 | CODE | |
| LOW | custom_components/xiaomi_home/light.py | 108 | CODE | |
| LOW | custom_components/xiaomi_home/humidifier.py | 101 | CODE | |
| LOW | custom_components/xiaomi_home/media_player.py | 406 | CODE | |
| LOW | custom_components/xiaomi_home/__init__.py | 85 | CODE | |
| LOW | custom_components/xiaomi_home/notify.py | 97 | CODE | |
| LOW | custom_components/xiaomi_home/vacuum.py | 111 | CODE | |
| LOW | custom_components/xiaomi_home/text.py | 119 | CODE | |
| LOW | custom_components/xiaomi_home/climate.py | 315 | CODE | |
| LOW | custom_components/xiaomi_home/climate.py | 499 | CODE | |
| LOW | custom_components/xiaomi_home/climate.py | 658 | CODE | |
| LOW | custom_components/xiaomi_home/device_tracker.py | 84 | CODE | |
| LOW | custom_components/xiaomi_home/config_flow.py | 2140 | CODE | |
| LOW | custom_components/xiaomi_home/config_flow.py | 497 | CODE | |
| LOW | custom_components/xiaomi_home/config_flow.py | 663 | CODE | |
| LOW | custom_components/xiaomi_home/config_flow.py | 1426 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 678 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_network.py | 338 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 1141 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_storage.py | 127 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_storage.py | 194 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_storage.py | 605 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 255 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 375 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 594 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 638 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_client.py | 770 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_device.py | 415 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_device.py | 622 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_device.py | 1164 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_device.py | 1436 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 303 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 754 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 839 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 1399 | CODE | |
| LOW | custom_components/xiaomi_home/miot/miot_cloud.py | 459 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | custom_components/xiaomi_home/event.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/cover.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/sensor.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/fan.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/light.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/number.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/humidifier.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/media_player.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/__init__.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/notify.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/vacuum.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/switch.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/button.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/text.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/binary_sensor.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/select.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/water_heater.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/climate.py | 48 | CODE | |
| LOW | custom_components/xiaomi_home/device_tracker.py | 48 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | custom_components/xiaomi_home/miot/miot_mips.py | 386 | def update_mqtt_password(self, password: str) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 317 | def update_info(self, info: dict) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 644 | async def update_net_ifs_async(self, net_ifs: list[str]) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_lan.py | 679 | async def update_subscribe_option(self, enable_subscribe: bool) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 839 | async def set_spec_async(self, urn: str) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 1062 | async def set_spec_spec(self, urn_key: str) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 1146 | async def set_spec_async(self, urn: str) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 1197 | async def set_spec_async(self, urn: str) -> None: | CODE |
| LOW | custom_components/xiaomi_home/miot/miot_cloud.py | 116 | def set_redirect_url(self, redirect_url: str) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | install.sh | 11 | # Check if config path exists. | COMMENT |
| LOW | custom_components/xiaomi_home/miot/miot_i18n.py | 90 | # Check if the file is a valid JSON file | COMMENT |
| LOW | custom_components/xiaomi_home/miot/miot_spec.py | 964 | # Check if the file is a valid file | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | custom_components/xiaomi_home/translations/en.json | 24 | "description": "## Usage Introduction\r\n### Network Detection Address\r\nUsed to check if the network i | CODE |
| MEDIUM | custom_components/xiaomi_home/translations/en.json | 179 | "description": "## Usage Introduction\r\n### Network Detection Address\r\nUsed to check if the network i | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | custom_components/xiaomi_home/miot/miot_lan.py | 950 | # The following methods SHOULD ONLY be called in the internal loop | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | custom_components/xiaomi_home/miot/miot_device.py | 1328 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | custom_components/xiaomi_home/miot/miot_error.py | 61 | CODE_TIMEOUT = -10006 | COMMENT |