Repository Analysis

home-assistant/core

:house_with_garden: Open source home automation that puts local control and privacy first.

16.0 Moderate AI signal View on GitHub
16.0
Adjusted Score
16.0
Raw Score
100%
Time Factor
2026-05-30
Last Push
87,388
Stars
Python
Language
3,506,725
Lines of Code
21501
Files
39619
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 91HIGH 3894MEDIUM 495LOW 35139

Pattern Findings

39619 matches across 19 categories. Click a row to expand file-level details.

Hyper-Verbose Identifiers32118 hits · 30795 pts
SeverityFileLineSnippet
LOW…ins/pylint_home_assistant/checkers/test_determinism.py47def _condition_references_parameter(node: nodes.If, param_names: set[str]) -> bool:
LOW…nt/plugins/pylint_home_assistant/checkers/decorator.py37 def _get_pytest_fixture_node_keyword(
LOW…home_assistant/checkers/entity_description_defaults.py112def _resolve_description_class(call: nodes.Call) -> nodes.ClassDef | None:
LOW…plugins/pylint_home_assistant/checkers/runtime_data.py85def _is_hass_data_domain_access(node: nodes.Subscript) -> bool:
LOW…lint/plugins/pylint_home_assistant/checkers/imports.py250 def _visit_importfrom_relative(
LOW…lint/plugins/pylint_home_assistant/checkers/imports.py278 def _check_for_constant_alias(
LOW…lint/plugins/pylint_home_assistant/checkers/imports.py313 def _check_for_component_root_import(
LOW…lint/plugins/pylint_home_assistant/checkers/imports.py340 def _check_for_relative_import(
LOW…me_assistant/checkers/quality_scale/has_entity_name.py121def _class_body_sets_attr_true(class_node: nodes.ClassDef, attr_name: str) -> bool:
LOW…me_assistant/checkers/quality_scale/has_entity_name.py150def _method_unconditionally_sets_attr_true(class_node: nodes.ClassDef) -> bool:
LOW…me_assistant/checkers/quality_scale/has_entity_name.py208def _description_sets_has_entity_name(description_class: nodes.ClassDef) -> bool:
LOW…me_assistant/checkers/quality_scale/has_entity_name.py218def _entity_description_annotation_satisfies(class_node: nodes.ClassDef) -> bool:
LOW…me_assistant/checkers/quality_scale/has_entity_name.py275def _collect_same_module_ancestor_qnames(module: nodes.Module) -> set[str]:
LOW…home_assistant/checkers/config_flow/unique_id_no_ip.py100def _check_subscript_or_call_ip(node: nodes.NodeNG) -> str | None:
LOW…nt_home_assistant/checkers/tests/direct_async_setup.py27def _is_integration_async_setup(call: nodes.Call) -> bool:
LOW…home_assistant/checkers/tests/redundant_usefixtures.py23def _is_pytest_mark_usefixtures(node: nodes.Call) -> bool:
LOW…home_assistant/checkers/tests/redundant_usefixtures.py35def _extract_usefixtures_names(node: nodes.NodeNG) -> set[str]:
LOW…home_assistant/checkers/tests/redundant_usefixtures.py48def _collect_module_usefixtures(module: nodes.Module) -> set[str]:
LOW…home_assistant/checkers/tests/redundant_usefixtures.py86def _collect_autouse_fixtures(module: nodes.Module) -> set[str]:
LOW…home_assistant/checkers/tests/redundant_usefixtures.py116def _collect_conftest_fixtures(module: nodes.Module) -> set[str]:
LOW…assistant/checkers/tests/direct_async_migrate_entry.py23def _is_integration_async_migrate_entry(call: nodes.Call) -> bool:
LOW…e_assistant/checkers/tests/direct_async_setup_entry.py35def _resolve_integration_async_setup_entry(call: nodes.Call) -> _SetupKind | None:
LOW…ome_assistant/checkers/actions/service_registration.py52def _find_service_registrations(
LOW…/plugins/pylint_home_assistant/helpers/translations.py23def _load_translations_from_dir(integration_dir: Path) -> dict | None:
LOW…/plugins/pylint_home_assistant/helpers/translations.py61def load_translations_for_domain(module: nodes.Module, domain: str) -> dict | None:
LOW…/plugins/pylint_home_assistant/helpers/translations.py82def get_exception_translations(module: nodes.Module) -> dict[str, dict]:
LOW…/plugins/pylint_home_assistant/helpers/translations.py87def get_exception_translations_for_domain(
LOW…/plugins/pylint_home_assistant/helpers/translations.py94def _get_exceptions_from_data(data: dict | None) -> dict[str, dict]:
LOW…/plugins/pylint_home_assistant/helpers/translations.py165def resolve_translation_reference(message: str, components_dir: Path | None) -> str:
LOW…plugins/pylint_home_assistant/helpers/quality_scale.py14def clear_quality_scale_cache() -> None:
LOW…plugins/pylint_home_assistant/helpers/quality_scale.py54def quality_scale_rule_is_done(module: nodes.Module, rule: str) -> bool:
LOW…plugins/pylint_home_assistant/helpers/quality_scale.py62def quality_scale_rule_is_done_or_exempt(module: nodes.Module, rule: str) -> bool:
LOWhomeassistant/bootstrap.py444def _init_blocking_io_modules_in_executor() -> None:
LOWhomeassistant/bootstrap.py461async def async_load_base_functionality(hass: core.HomeAssistant) -> bool:
LOWhomeassistant/bootstrap.py710async def async_mount_local_lib_path(config_dir: str) -> str:
LOWhomeassistant/bootstrap.py742async def _async_resolve_domains_and_preload(
LOWhomeassistant/bootstrap.py873async def _async_set_up_integrations(
LOWhomeassistant/bootstrap.py1058async def _async_setup_multi_components(
LOWhomeassistant/data_entry_flow.py151def _map_error_to_schema_errors(
LOWhomeassistant/data_entry_flow.py243 def async_progress_by_handler(
LOWhomeassistant/data_entry_flow.py260 def async_progress_by_init_data_type(
LOWhomeassistant/data_entry_flow.py277 def _async_progress_by_handler(
LOWhomeassistant/data_entry_flow.py444 def _async_remove_flow_from_index(
LOWhomeassistant/data_entry_flow.py459 def _async_remove_flow_progress(self, flow_id: str) -> None:
LOWhomeassistant/data_entry_flow.py565 def _raise_if_step_does_not_exist(
LOWhomeassistant/data_entry_flow.py586 def _async_flow_handler_to_flow_result(
LOWhomeassistant/data_entry_flow.py658 def add_suggested_values_to_schema(
LOWhomeassistant/data_entry_flow.py839 def async_notify_flow_changed(self) -> None:
LOWhomeassistant/data_entry_flow.py895 def async_cancel_progress_task(self) -> None:
LOWhomeassistant/runner.py79def _report_existing_instance(lock_file_path: Path, config_dir: str) -> None:
LOWhomeassistant/runner.py211def _async_loop_exception_handler(
LOWhomeassistant/runner.py300def _cancel_all_tasks_with_timeout(
LOWhomeassistant/config_entries.py3002 def async_supports_options_flow(cls, config_entry: ConfigEntry) -> bool:
LOWhomeassistant/config_entries.py3008 def async_get_supported_subentry_types(
LOWhomeassistant/config_entries.py3015 def async_update_title_placeholders(
LOWhomeassistant/config_entries.py211def signal_discovered_config_entry_removed(
LOWhomeassistant/config_entries.py706 async def __async_setup_with_context(
LOWhomeassistant/config_entries.py1262 def _async_process_on_state_change(self) -> None:
LOWhomeassistant/config_entries.py1412def _report_non_awaited_platform_forwards(entry: ConfigEntry, what: str) -> None:
LOWhomeassistant/config_entries.py1457 async def async_wait_import_flow_initialized(self, handler: str) -> None:
32058 more matches not shown…
Cross-File Repetition3801 hits · 19005 pts
SeverityFileLineSnippet
HIGH…nt_home_assistant/checkers/tests/direct_async_setup.py0record whether the current module is a test module.
HIGH…assistant/checkers/tests/direct_async_migrate_entry.py0record whether the current module is a test module.
HIGH…e_assistant/checkers/tests/direct_async_setup_entry.py0record whether the current module is a test module.
HIGHhomeassistant/config_entries.py0return the underlying values to avoid __iter__ overhead.
HIGHhomeassistant/core.py0return the underlying values to avoid __iter__ overhead.
HIGHhomeassistant/helpers/registry.py0return the underlying values to avoid __iter__ overhead.
HIGHhomeassistant/auth/mfa_modules/totp.py0return a data entry flow handler for setup module. mfa module should extend setupflow
HIGHhomeassistant/auth/mfa_modules/__init__.py0return a data entry flow handler for setup module. mfa module should extend setupflow
HIGHhomeassistant/auth/mfa_modules/notify.py0return a data entry flow handler for setup module. mfa module should extend setupflow
HIGHhomeassistant/auth/mfa_modules/insecure_example.py0return a data entry flow handler for setup module. mfa module should extend setupflow
HIGH…sistant/components/tesla_wall_connector/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/intellifire/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/opengarage/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/system_bridge/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/rympro/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGH…nents/google_generative_ai_conversation/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/mutesync/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/suez_water/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/fibaro/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGH…ssistant/components/devolo_home_network/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/bosch_alarm/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/teltonika/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/centriconnect/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/ptdevices/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/prusalink/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/airobot/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/anthropic/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/saunum/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGH…ssistant/components/openai_conversation/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGH…meassistant/components/evil_genius_labs/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGH…ssistant/components/azure_data_explorer/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/tractive/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGH…ffold/templates/config_flow/integration/config_flow.py0validate the user input allows us to connect. data has the keys from step_user_data_schema with values provided by the u
HIGHhomeassistant/components/syncthing/sensor.py0could the device be accessed during the last update call.
HIGHhomeassistant/components/supervisord/sensor.py0could the device be accessed during the last update call.
HIGHhomeassistant/components/dwd_weather_warnings/sensor.py0could the device be accessed during the last update call.
HIGHhomeassistant/components/volkszaehler/sensor.py0could the device be accessed during the last update call.
HIGHhomeassistant/components/deako/config_flow.py0return if there are devices that can be discovered.
HIGHhomeassistant/components/refoss/config_flow.py0return if there are devices that can be discovered.
HIGHhomeassistant/components/zerproc/config_flow.py0return if there are devices that can be discovered.
HIGHhomeassistant/components/gree/config_flow.py0return if there are devices that can be discovered.
HIGH…eassistant/components/govee_light_local/config_flow.py0return if there are devices that can be discovered.
HIGHhomeassistant/components/wemo/config_flow.py0return if there are devices that can be discovered.
HIGHhomeassistant/components/hisense_aehw4a1/config_flow.py0return if there are devices that can be discovered.
HIGHhomeassistant/components/onvif/config_flow.py0return if there are devices that can be discovered.
HIGHhomeassistant/components/fjaraskupan/config_flow.py0return if there are devices that can be discovered.
HIGHhomeassistant/components/weatherflow/config_flow.py0return if there are devices that can be discovered.
HIGH…age_raises_cancelled_error_config_entry/config_flow.py0return if there are devices that can be discovered.
HIGH…lates/config_flow_discovery/integration/config_flow.py0return if there are devices that can be discovered.
HIGHhomeassistant/components/demo/fan.py0return the current preset mode, e.g., auto, smart, interval, favorite.
HIGHhomeassistant/components/demo/fan.py0return the current preset mode, e.g., auto, smart, interval, favorite.
HIGHhomeassistant/components/zwave_js/fan.py0return the current preset mode, e.g., auto, smart, interval, favorite.
HIGHhomeassistant/components/demo/media_player.py0when was the position of the current playing media valid. returns value from homeassistant.util.dt.utcnow().
HIGHhomeassistant/components/cast/media_player.py0when was the position of the current playing media valid. returns value from homeassistant.util.dt.utcnow().
HIGHhomeassistant/components/emby/media_player.py0when was the position of the current playing media valid. returns value from homeassistant.util.dt.utcnow().
HIGHhomeassistant/components/dlna_dmr/media_player.py0when was the position of the current playing media valid. returns value from homeassistant.util.dt.utcnow().
HIGH…eassistant/components/yamaha_musiccast/media_player.py0when was the position of the current playing media valid. returns value from homeassistant.util.dt.utcnow().
HIGHhomeassistant/components/media_player/__init__.py0when was the position of the current playing media valid. returns value from homeassistant.util.dt.utcnow().
HIGHhomeassistant/components/demo/media_player.py0return the artist of current playing media (music track only).
HIGHhomeassistant/components/mpd/media_player.py0return the artist of current playing media (music track only).
3741 more matches not shown…
Self-Referential Comments359 hits · 1142 pts
SeverityFileLineSnippet
MEDIUMhomeassistant/config_entries.py1322 # Create an issue, there's no need to hold the lock when doing that
MEDIUMhomeassistant/config.py491 # This function is an alternative to the stringification done by
MEDIUMhomeassistant/config.py1329 # Create a copy of the configuration with all config for current
MEDIUMhomeassistant/util/frozen_dataclass_compat.py89 # This class is a real dataclass, optionally inject the parent's annotations
MEDIUMhomeassistant/components/huisbaasje/__init__.py20 # Create the EnergyFlip client
MEDIUMhomeassistant/components/huisbaasje/__init__.py35 # Create a coordinator for polling updates
MEDIUMhomeassistant/components/izone/climate.py197 # Create the zones
MEDIUMhomeassistant/components/pooldose/__init__.py62 # Create the PoolDose API client and connect
MEDIUMhomeassistant/components/pglab/discovery.py202 # Create a PGLab device and add entities.
MEDIUMhomeassistant/components/pglab/discovery.py221 # Create a new device.
MEDIUMhomeassistant/components/pglab/__init__.py66 # Create an MQTT client for PGLab used for PGLab python module.
MEDIUMhomeassistant/components/imeon_inverter/__init__.py16 # Create the corresponding HUB
MEDIUMhomeassistant/components/imeon_inverter/config_flow.py72 # Create a new configuration entry if login succeeds
MEDIUMhomeassistant/components/liebherr/__init__.py53 # Create a coordinator for each device (may be empty if no devices)
MEDIUMhomeassistant/components/intellifire/__init__.py83 # Create a Cloud Interface
MEDIUMhomeassistant/components/intellifire/config_flow.py97 # Define a cloud api interface we can use
MEDIUM…assistant/components/rituals_perfume_genie/__init__.py75 # Create a coordinator for each diffuser
MEDIUMhomeassistant/components/iotawatt/coordinator.py53 # This method is called from each sensor upon their state being restored.
MEDIUMhomeassistant/components/homeassistant/__init__.py152 # Create a new dict for this call
MEDIUMhomeassistant/components/homeassistant/triggers/time.py204 # Create a temporary datetime object to get an offset.
MEDIUMhomeassistant/components/waqi/__init__.py42 # Create a coordinator for each station subentry
MEDIUMhomeassistant/components/assist_pipeline/pipeline.py918 # Create a background task to prepare the conversation agent
MEDIUMhomeassistant/components/assist_pipeline/pipeline.py2116 # Create a temporary list in case the list is modified while we iterate
MEDIUMhomeassistant/components/config/floor_registry.py64 # Create a set for the aliases without:
MEDIUMhomeassistant/components/config/floor_registry.py122 # Create a set for the aliases without:
MEDIUMhomeassistant/components/config/area_registry.py66 # Create a set for the aliases without:
MEDIUMhomeassistant/components/config/area_registry.py136 # Create a set for the aliases without:
MEDIUMhomeassistant/components/energy/sensor.py282 # Create a config wrapper that maps the sell price fields to standard names
MEDIUMhomeassistant/components/energy/validate.py706 # Create a list of validation checks
MEDIUMhomeassistant/components/auth/__init__.py96## Create a long-lived access token
MEDIUMhomeassistant/components/local_calendar/calendar.py185 # This function is called with new events created in the local timezone,
MEDIUMhomeassistant/components/rehlko/binary_sensor.py144 # Create a synthetic entity description for this loadshed parameter
MEDIUMhomeassistant/components/yale/util.py23 # Create an aiohttp session instead of using the default one since the
MEDIUMhomeassistant/components/yale/camera.py29 # Create an aiohttp session instead of using the default one since the
MEDIUMhomeassistant/components/google/calendar.py173 # Create a separate calendar for birthdays
MEDIUMhomeassistant/components/google/calendar.py184 # Create an optional disabled by default entity for Work Location
MEDIUMhomeassistant/components/vegehub/config_flow.py79 # Create a VegeHub object to interact with the device
MEDIUMhomeassistant/components/vegehub/config_flow.py167 # Create the config entry for the new device
MEDIUMhomeassistant/components/sftp_storage/config_flow.py139 # Create a session using your credentials
MEDIUMhomeassistant/components/stream/worker.py212 # Create a fragment every TARGET_PART_DURATION. The data from
MEDIUMhomeassistant/components/motionmount/entity.py37 # Create a base unique id
MEDIUMhomeassistant/components/go2rtc/server.py31_GO2RTC_CONFIG_FORMAT = r"""# This file is managed by Home Assistant
MEDIUMhomeassistant/components/template/coordinator.py140 # Create a context referring to the trigger context.
MEDIUMhomeassistant/components/template/coordinator.py144 # This method is only called if there's a script
MEDIUMhomeassistant/components/template/config.py383 # Create a copy of the configuration with all config for current
MEDIUMhomeassistant/components/hp_ilo/sensor.py90 # Create a data fetcher to support all of the configured sensors. Then make
MEDIUMhomeassistant/components/sense/__init__.py57 # Creating the AsyncSenseable object loads
MEDIUMhomeassistant/components/sense/config_flow.py52 # Creating the AsyncSenseable object loads
MEDIUMhomeassistant/components/touchline_sl/__init__.py85 # Create a new Device for each coorodinator to represent each module
MEDIUMhomeassistant/components/scrape/__init__.py163 # Create a new sub config entry per sensor
MEDIUMhomeassistant/components/cielo_home/coordinator.py108# Define the ConfigEntry type here to avoid circular imports
MEDIUMhomeassistant/components/citybikes/sensor.py122 # Create a single instance of CityBikesNetworks.
MEDIUMhomeassistant/components/gtfs/sensor.py640 # Define the state as a UTC timestamp with ISO 8601 format
MEDIUMhomeassistant/components/generic_thermostat/climate.py647 # Create a child context for the switch service call so we can
MEDIUMhomeassistant/components/generic_thermostat/climate.py676 # Create a child context for the switch service call so we can
MEDIUMhomeassistant/components/script/config.py306 # Create a copy of the configuration with all config for current
MEDIUMhomeassistant/components/notion/coordinator.py62 # Define a dict of bridges, indexed by bridge ID (an integer):
MEDIUMhomeassistant/components/notion/coordinator.py65 # Define a dict of listeners, indexed by listener UUID (a string):
MEDIUMhomeassistant/components/notion/coordinator.py68 # Define a dict of sensors, indexed by sensor UUID (a string):
MEDIUMhomeassistant/components/notion/coordinator.py71 # Define a user preferences response object:
299 more matches not shown…
Hallucination Indicators91 hits · 1040 pts
SeverityFileLineSnippet
CRITICALhomeassistant/components/deconz/cover.py93 await self.hub.api.lights.covers.set_state(
CRITICALhomeassistant/components/deconz/cover.py101 await self.hub.api.lights.covers.set_state(
CRITICALhomeassistant/components/deconz/cover.py109 await self.hub.api.lights.covers.set_state(
CRITICALhomeassistant/components/deconz/cover.py117 await self.hub.api.lights.covers.set_state(
CRITICALhomeassistant/components/deconz/cover.py133 await self.hub.api.lights.covers.set_state(
CRITICALhomeassistant/components/deconz/cover.py141 await self.hub.api.lights.covers.set_state(
CRITICALhomeassistant/components/deconz/cover.py149 await self.hub.api.lights.covers.set_state(
CRITICALhomeassistant/components/deconz/cover.py157 await self.hub.api.lights.covers.set_state(
CRITICALhomeassistant/components/deconz/fan.py101 await self.hub.api.lights.lights.set_state(
CRITICALhomeassistant/components/deconz/fan.py118 await self.hub.api.lights.lights.set_state(
CRITICALhomeassistant/components/deconz/fan.py125 await self.hub.api.lights.lights.set_state(
CRITICALhomeassistant/components/deconz/switch.py55 await self.hub.api.lights.lights.set_state(
CRITICALhomeassistant/components/deconz/switch.py62 await self.hub.api.lights.lights.set_state(
CRITICALhomeassistant/components/deconz/button.py124 await self.hub.api.sensors.presence.set_config(
CRITICALhomeassistant/components/deconz/lock.py63 await self.hub.api.sensors.door_lock.set_config(
CRITICALhomeassistant/components/deconz/lock.py68 await self.hub.api.lights.locks.set_state(
CRITICALhomeassistant/components/deconz/lock.py76 await self.hub.api.sensors.door_lock.set_config(
CRITICALhomeassistant/components/deconz/lock.py81 await self.hub.api.lights.locks.set_state(
CRITICALhomeassistant/components/deconz/select.py94 await self.hub.api.sensors.air_purifier.set_config(
CRITICALhomeassistant/components/deconz/select.py124 await self.hub.api.sensors.presence.set_config(
CRITICALhomeassistant/components/deconz/select.py151 await self.hub.api.sensors.presence.set_config(
CRITICALhomeassistant/components/deconz/select.py182 await self.hub.api.sensors.presence.set_config(
CRITICALhomeassistant/components/deconz/climate.py149 await self.hub.api.sensors.thermostat.set_config(
CRITICALhomeassistant/components/deconz/climate.py167 await self.hub.api.sensors.thermostat.set_config(
CRITICALhomeassistant/components/deconz/climate.py172 await self.hub.api.sensors.thermostat.set_config(
CRITICALhomeassistant/components/deconz/climate.py206 await self.hub.api.sensors.thermostat.set_config(
CRITICALhomeassistant/components/deconz/climate.py235 await self.hub.api.sensors.thermostat.set_config(
CRITICALhomeassistant/components/deconz/climate.py240 await self.hub.api.sensors.thermostat.set_config(
CRITICALhomeassistant/components/deconz/siren.py61 await self.hub.api.lights.sirens.set_state(
CRITICALhomeassistant/components/deconz/siren.py69 await self.hub.api.lights.sirens.set_state(
CRITICALhomeassistant/components/hydrawise/sensor.py119 sensor.zone.scheduled_runs.current_run.remaining_time.total_seconds()
CRITICALhomeassistant/components/meteo_france/__init__.py110 department = entry.runtime_data.forecast_coordinator.data.position.get("dept")
CRITICALhomeassistant/components/xbox/diagnostics.py32 for person in config_entry.runtime_data.presence.data.presence.values()
CRITICALhomeassistant/components/xbox/diagnostics.py49 for title in config_entry.runtime_data.presence.data.title_info.values()
CRITICALhomeassistant/components/wled/select.py183 if (segment := self.coordinator.data.state.segments.get(self._segment)) is None:
CRITICALhomeassistant/components/sendgrid/notify.py75 response = self._sg.client.mail.send.post(request_body=data)
CRITICALhomeassistant/components/tolo/entity.py24 model=self.coordinator.data.status.model.name.capitalize(),
CRITICALhomeassistant/components/isy994/sensor.py375 self._availability_handler = self._node.isy.nodes.status_events.subscribe(
CRITICALhomeassistant/components/isy994/number.py265 self._memory_change_handler = self._node.isy.nodes.status_events.subscribe(
CRITICALhomeassistant/components/isy994/switch.py161 self._change_handler = self._node.isy.nodes.status_events.subscribe(
CRITICALhomeassistant/components/isy994/button.py118 self._availability_handler = self._node.isy.nodes.status_events.subscribe(
CRITICALhomeassistant/components/isy994/entity.py250 self._availability_handler = self._node.isy.nodes.status_events.subscribe(
CRITICALhomeassistant/components/isy994/select.py179 self._memory_change_handler = self._node.isy.nodes.status_events.subscribe(
CRITICALhomeassistant/components/awair/config_flow.py124 self.hass.config_entries.flow._handler_progress_index.get(DOMAIN) or set(), # noqa: SLF001
CRITICALhomeassistant/components/squeezebox/media_player.py296 self.coordinator.config_entry.runtime_data.known_player_ids.discard(
CRITICALhomeassistant/components/squeezebox/media_player.py300 self.coordinator.config_entry.runtime_data.player_coordinators.pop(
CRITICALhomeassistant/components/volvo/button.py103 result = await self.entry.runtime_data.context.api.async_execute_command(
CRITICALhomeassistant/components/knx/climate.py530 return self._device.mode.operation_mode.name.lower()
CRITICALhomeassistant/components/knx/climate.py620 self._device.mode.xknx.devices.async_add(self._device.mode)
CRITICALhomeassistant/components/knx/climate.py626 self._device.mode.xknx.devices.async_remove(self._device.mode)
CRITICALhomeassistant/components/fritz/coordinator.py14from fritzconnection.core.exceptions import FritzActionError
CRITICALhomeassistant/components/balboa/climate.py131 return self._client.heat_mode.state.name.lower()
CRITICALhomeassistant/components/axis/light.py81 await self.hub.api.vapix.light_control.get_current_intensity(self._light_id)
CRITICALhomeassistant/components/axis/light.py84 await self.hub.api.vapix.light_control.get_valid_intensity(self._light_id)
CRITICALhomeassistant/components/axis/light.py101 await self.hub.api.vapix.light_control.activate_light(self._light_id)
CRITICALhomeassistant/components/axis/light.py105 await self.hub.api.vapix.light_control.set_manual_intensity(
CRITICALhomeassistant/components/axis/light.py112 await self.hub.api.vapix.light_control.deactivate_light(self._light_id)
CRITICALhomeassistant/components/axis/light.py117 await self.hub.api.vapix.light_control.get_current_intensity(self._light_id)
CRITICALhomeassistant/components/axis/switch.py71 await self.hub.api.vapix.ports.close(self._event_id)
CRITICALhomeassistant/components/axis/switch.py75 await self.hub.api.vapix.ports.open(self._event_id)
31 more matches not shown…
Deep Nesting913 hits · 881 pts
SeverityFileLineSnippet
LOW…ins/pylint_home_assistant/checkers/greek_micro_char.py39
LOW…nt_home_assistant/checkers/sequential_executor_jobs.py72
LOW…lint/plugins/pylint_home_assistant/checkers/imports.py340
LOW…lint/plugins/pylint_home_assistant/checkers/imports.py368
LOW…lint_home_assistant/checkers/exception_translations.py56
LOW…gins/pylint_home_assistant/checkers/duplicate_const.py19
LOW…me_assistant/checkers/quality_scale/has_entity_name.py150
LOW…home_assistant/checkers/config_flow/unique_id_no_ip.py127
LOW…home_assistant/checkers/config_flow/unique_id_no_ip.py51
LOW…home_assistant/checkers/tests/redundant_usefixtures.py48
LOW…home_assistant/checkers/tests/redundant_usefixtures.py86
LOW…ome_assistant/checkers/actions/swallowed_exceptions.py93
LOW…ome_assistant/checkers/actions/service_registration.py52
LOW…gins/pylint_home_assistant/checkers/actions/helpers.py33
LOW…ylint_home_assistant/checkers/type_hints/validators.py157
LOW…/pylint_home_assistant/checkers/type_hints/__init__.py116
LOWpylint/plugins/pylint_home_assistant/helpers/icons.py43
LOW…/plugins/pylint_home_assistant/helpers/translations.py23
LOW…/plugins/pylint_home_assistant/helpers/translations.py138
LOWhomeassistant/bootstrap.py303
LOWhomeassistant/bootstrap.py573
LOWhomeassistant/data_entry_flow.py340
LOWhomeassistant/runner.py79
LOWhomeassistant/setup.py280
LOWhomeassistant/requirements.py249
LOWhomeassistant/loader.py1375
LOWhomeassistant/loader.py1118
LOWhomeassistant/backup_restore.py81
LOWhomeassistant/util/color.py313
LOWhomeassistant/auth/auth_store.py312
LOWhomeassistant/components/buienradar/sensor.py785
LOWhomeassistant/components/smlight/config_flow.py41
LOWhomeassistant/components/smlight/config_flow.py69
LOWhomeassistant/components/smlight/config_flow.py119
LOWhomeassistant/components/deconz/sensor.py423
LOWhomeassistant/components/deconz/deconz_event.py56
LOWhomeassistant/components/deconz/deconz_event.py60
LOWhomeassistant/components/statistics/sensor.py836
LOWhomeassistant/components/soundtouch/__init__.py67
LOWhomeassistant/components/soundtouch/__init__.py70
LOWhomeassistant/components/wiim/media_player.py324
LOWhomeassistant/components/wiim/media_player.py568
LOWhomeassistant/components/ads/cover.py88
LOW…meassistant/components/here_travel_time/coordinator.py372
LOWhomeassistant/components/powerwall/config_flow.py116
LOWhomeassistant/components/anglian_water/coordinator.py65
LOWhomeassistant/components/hydrawise/coordinator.py108
LOWhomeassistant/components/fully_kiosk/services.py24
LOWhomeassistant/components/notify/legacy.py66
LOWhomeassistant/components/notify/legacy.py73
LOWhomeassistant/components/control4/cover.py44
LOWhomeassistant/components/control4/light.py34
LOWhomeassistant/components/control4/media_player.py75
LOWhomeassistant/components/smartthings/sensor.py1327
LOWhomeassistant/components/smartthings/__init__.py335
LOWhomeassistant/components/smartthings/__init__.py499
LOWhomeassistant/components/smartthings/__init__.py632
LOWhomeassistant/components/smartthings/__init__.py660
LOWhomeassistant/components/smartthings/__init__.py347
LOWhomeassistant/components/smartthings/switch.py309
853 more matches not shown…
Excessive Try-Catch Wrapping859 hits · 870 pts
SeverityFileLineSnippet
LOW…ome_assistant/checkers/actions/swallowed_exceptions.py208 except Exception: # noqa: BLE001
LOWhomeassistant/data_entry_flow.py468 except Exception:
LOWhomeassistant/config_entries.py1051 except Exception as exc:
LOWhomeassistant/config_entries.py1094 except Exception:
LOWhomeassistant/config_entries.py1177 except Exception:
LOWhomeassistant/config_entries.py1269 except Exception:
LOWhomeassistant/config.py607 except Exception:
LOWhomeassistant/config.py1109 except Exception as exc: # noqa: BLE001
LOWhomeassistant/config.py1193 except Exception as exc: # noqa: BLE001
LOWhomeassistant/config.py1220 except Exception as exc: # noqa: BLE001
LOWhomeassistant/config.py1257 except Exception as exc: # noqa: BLE001
LOWhomeassistant/core_config.py886 except Exception:
LOWhomeassistant/core.py1174 except Exception:
LOWhomeassistant/core.py1535 except Exception:
LOWhomeassistant/core.py1550 except Exception:
LOWhomeassistant/core.py2856 except Exception:
LOWhomeassistant/setup.py624 except Exception:
LOWhomeassistant/requirements.py243 except Exception as ex: # noqa: BLE001
LOWhomeassistant/loader.py1341 except Exception:
LOWhomeassistant/loader.py1089 except Exception as err:
LOWhomeassistant/loader.py1294 except Exception as err:
LOWhomeassistant/loader.py1532 except Exception as exc: # noqa: BLE001
LOWhomeassistant/loader.py1624 except Exception as exc:
LOWhomeassistant/backup_restore.py189 except Exception as err:
LOWhomeassistant/util/logging.py176 except Exception: # noqa: BLE001
LOWhomeassistant/util/logging.py186 except Exception: # noqa: BLE001
LOWhomeassistant/util/logging.py197 except Exception: # noqa: BLE001
LOWhomeassistant/util/logging.py249 except Exception: # noqa: BLE001
LOWhomeassistant/util/thread.py34 except Exception as err: # noqa: BLE001
LOWhomeassistant/util/async_.py66 except Exception as exc: # noqa: BLE001
LOW…stant/components/nederlandse_spoorwegen/config_flow.py54 except Exception:
LOW…sistant/components/tesla_wall_connector/config_flow.py102 except Exception:
LOWhomeassistant/components/syncthing/config_flow.py38 except Exception as error:
LOWhomeassistant/components/blink/coordinator.py54 except Exception as ex:
LOWhomeassistant/components/blink/config_flow.py79 except Exception:
LOWhomeassistant/components/blink/config_flow.py106 except Exception:
LOWhomeassistant/components/blink/config_flow.py138 except Exception:
LOWhomeassistant/components/blink/config_flow.py171 except Exception:
LOWhomeassistant/components/intelliclima/config_flow.py55 except Exception: # noqa: BLE001
LOWhomeassistant/components/webhook/__init__.py213 except Exception:
LOWhomeassistant/components/aseko_pool_live/config_flow.py56 except Exception:
LOWhomeassistant/components/aseko_pool_live/config_flow.py114 except Exception:
LOWhomeassistant/components/zeversolar/config_flow.py49 except Exception:
LOWhomeassistant/components/firefly_iii/config_flow.py76 except Exception:
LOWhomeassistant/components/firefly_iii/config_flow.py115 except Exception:
LOWhomeassistant/components/firefly_iii/config_flow.py152 except Exception:
LOWhomeassistant/components/labs/websocket_api.py91 except Exception as err: # noqa: BLE001 - websocket handlers can catch broad exceptions
LOWhomeassistant/components/powerwall/config_flow.py176 except Exception as ex:
LOWhomeassistant/components/flipr/config_flow.py48 except Exception:
LOWhomeassistant/components/anglian_water/config_flow.py41 except Exception:
LOWhomeassistant/components/foscam/config_flow.py117 except Exception: # noqa: BLE001
LOWhomeassistant/components/fully_kiosk/config_flow.py51 except Exception as error: # pylint: disable=broad-except
LOWhomeassistant/components/renault/config_flow.py65 except Exception:
LOWhomeassistant/components/notify/legacy.py122 except Exception: # noqa: BLE001
LOWhomeassistant/components/huisbaasje/config_flow.py46 except Exception:
LOWhomeassistant/components/lojack/__init__.py62 except Exception:
LOWhomeassistant/components/lojack/config_flow.py50 except Exception:
LOWhomeassistant/components/lojack/config_flow.py95 except Exception:
LOWhomeassistant/components/control4/config_flow.py81 except Exception:
LOWhomeassistant/components/control4/config_flow.py102 except Exception:
799 more matches not shown…
Unused Imports631 hits · 576 pts
SeverityFileLineSnippet
LOWhomeassistant/bootstrap.py22
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py40
LOWhomeassistant/bootstrap.py64
LOWhomeassistant/bootstrap.py115
LOWhomeassistant/bootstrap.py120
LOWhomeassistant/setup.py16
LOWhomeassistant/util/percentage.py3
LOWhomeassistant/util/percentage.py3
LOWhomeassistant/util/ulid.py3
LOWhomeassistant/util/ulid.py3
LOWhomeassistant/util/ulid.py3
LOWhomeassistant/util/ulid.py3
LOWhomeassistant/util/ulid.py3
LOWhomeassistant/util/yaml/__init__.py3
LOWhomeassistant/util/yaml/__init__.py3
LOWhomeassistant/util/yaml/__init__.py3
LOWhomeassistant/util/yaml/__init__.py4
LOWhomeassistant/util/yaml/__init__.py4
LOWhomeassistant/util/yaml/__init__.py4
LOWhomeassistant/util/yaml/__init__.py6
LOWhomeassistant/util/yaml/__init__.py6
LOWhomeassistant/util/yaml/__init__.py7
LOWhomeassistant/util/yaml/__init__.py7
LOWhomeassistant/util/yaml/__init__.py7
LOWhomeassistant/util/yaml/__init__.py7
LOWhomeassistant/util/yaml/__init__.py7
LOWhomeassistant/util/yaml/dumper.py3
LOWhomeassistant/util/yaml/dumper.py3
LOWhomeassistant/util/yaml/dumper.py3
LOWhomeassistant/util/yaml/dumper.py3
LOWhomeassistant/util/yaml/loader.py8
LOWhomeassistant/util/yaml/loader.py8
LOWhomeassistant/util/yaml/input.py3
LOWhomeassistant/util/yaml/input.py3
LOWhomeassistant/util/yaml/input.py3
LOWhomeassistant/util/yaml/input.py5
LOWhomeassistant/util/yaml/objects.py3
LOWhomeassistant/util/yaml/objects.py3
LOWhomeassistant/util/yaml/objects.py3
LOWhomeassistant/util/yaml/objects.py3
571 more matches not shown…
Redundant / Tautological Comments342 hits · 540 pts
SeverityFileLineSnippet
LOWhomeassistant/config_entries.py1714 # Check if config entry exists with unique ID. Unload it.
LOWhomeassistant/config.py1152 # Check if the integration has a custom config validator
LOWhomeassistant/core_config.py357 # Check if we need to raise an issue for imperial unit system
LOWhomeassistant/__main__.py190 # Check if another instance is already running
LOWhomeassistant/util/color.py248 # Check if the given xy value is within the color-reach of the lamp.
LOWhomeassistant/util/color.py725 # Check if the three points of the supplied gamut are not on the same line.
LOWhomeassistant/util/color.py730 # Check if all six coordinates of the gamut lie between 0 and 1.
LOWhomeassistant/util/dt.py540 # Check if we can round trip to UTC
LOWhomeassistant/util/__init__.py192 # Check if method is never called or no_throttle is given
LOWhomeassistant/components/buienradar/sensor.py787 # Check if we have a new measurement,
LOW…stant/components/nederlandse_spoorwegen/config_flow.py107 # Check if this API key is already used by another entry
LOWhomeassistant/components/soundtouch/config_flow.py86 # Check if already configured
LOWhomeassistant/components/powerwall/__init__.py90 # Check if we had an error before
LOWhomeassistant/components/brother/config_flow.py167 # Check if already configured
LOWhomeassistant/components/meteo_france/config_flow.py72 # Check if already configured
LOWhomeassistant/components/pooldose/__init__.py39 # Check if this entry needs migration
LOWhomeassistant/components/control4/__init__.py147 # Check if OS version is 3 or higher to get UI configuration
LOWhomeassistant/components/pglab/discovery.py136 # Check if the discovery message is in valid json format.
LOWhomeassistant/components/pglab/discovery.py146 # Check if the key id is present in the payload. It must always be present.
LOWhomeassistant/components/meteoclimatic/config_flow.py63 # Check if already configured
LOWhomeassistant/components/imeon_inverter/config_flow.py68 # Check if entry already exists
LOW…meassistant/components/onedrive_for_business/backup.py265 # Check if corresponding backup file exists
LOWhomeassistant/components/schedule/__init__.py71 # Check if the start time of the next event is before
LOWhomeassistant/components/schedule/__init__.py81 # Check if the from time of the event is after the to time of the previous event
LOWhomeassistant/components/lacrosse_view/config_flow.py82 # Check if we are reauthenticating
LOWhomeassistant/components/nws/sensor.py210 # Set alias to unit property -> prevent unnecessary hasattr calls
LOWhomeassistant/components/mobile_app/webhook.py675 # Check if disabled
LOWhomeassistant/components/switchbee/__init__.py45 # Check if websocket version
LOWhomeassistant/components/slide/__init__.py98 # Check if we have pos (OK) or code (NOK)
LOWhomeassistant/components/elgato/config_flow.py169 # Check if already configured
LOWhomeassistant/components/homeassistant/triggers/time.py118 # Check if current weekday matches the configuration
LOWhomeassistant/components/aquacell/coordinator.py68 # Check if the refresh token is expired
LOWhomeassistant/components/vizio/config_flow.py227 # Check if unique ID was found, set unique ID, and abort if a flow with
LOWhomeassistant/components/assist_pipeline/pipeline.py1314 # Check if all targeted entities were in the same area as
LOWhomeassistant/components/system_bridge/config_flow.py139 # Check if already configured
LOWhomeassistant/components/system_bridge/config_flow.py195 # Check if already configured
LOW…meassistant/components/lutron_caseta/device_trigger.py402 # Check if device is a valid keypad. Return empty if not.
LOWhomeassistant/components/wmspro/config_flow.py44 try: # Check if current host is a valid IP address
LOWhomeassistant/components/flexit_bacnet/switch.py73 # Check if deprecated fireplace switch is enabled and create repair issue
LOWhomeassistant/components/energyid/__init__.py324 # Check if entity is already mapped
LOWhomeassistant/components/energyid/config_flow.py204 # Check if device has been claimed
LOW…nt/components/energyid/energyid_sensor_mapping_flow.py79 # Check if entity exists
LOW…nt/components/energyid/energyid_sensor_mapping_flow.py85 # Check if entity is already mapped (by UUID)
LOWhomeassistant/components/xiaomi_tv/media_player.py46 # Check if there's a valid TV at the IP address.
LOWhomeassistant/components/lyric/climate.py458 # Set auto_changeover_active to True if the mode being passed is Auto
LOWhomeassistant/components/lektrico/config_flow.py119 # Check if already configured
LOWhomeassistant/components/onedrive/backup.py277 # Check if corresponding backup file exists
LOW…istant/components/device_sun_light_trigger/__init__.py269 # Check if any light is on
LOWhomeassistant/components/electrasmart/config_flow.py82 # Check if already configured
LOWhomeassistant/components/coinbase/__init__.py60 # Check if user is using deprecated v2 API credentials
LOWhomeassistant/components/ps4/config_flow.py65 # Check if able to bind to ports: UDP 987, TCP 997.
LOWhomeassistant/components/wiz/config_flow.py143 # Check if there is at least one device
LOWhomeassistant/components/vegehub/config_flow.py92 # Check if this device already exists
LOWhomeassistant/components/vegehub/config_flow.py154 # Check if this device already exists
LOWhomeassistant/components/portainer/coordinator.py269 # Check if container belongs to a stack via docker compose label
LOWhomeassistant/components/spotify/browse_media.py196 # Check if caller is requesting the root nodes
LOWhomeassistant/components/stream/worker.py255 # Check if audio is requested
LOWhomeassistant/components/flux_led/config_flow.py277 # Check if there is at least one device
LOW…assistant/components/ziggo_mediabox_xl/media_player.py61 # Check if a connection can be established to the device.
LOWhomeassistant/components/xiaomi_aqara/config_flow.py181 # Check if the discovered device is an xiaomi aqara gateway.
282 more matches not shown…
Cross-Language Confusion91 hits · 495 pts
SeverityFileLineSnippet
HIGHhomeassistant/components/auth/login_flow.py10 "id": null,
HIGHhomeassistant/components/auth/login_flow.py30 "handler": ["local_provider", null],
HIGHhomeassistant/components/auth/login_flow.py45 "handler": ["insecure_example", null],
HIGHhomeassistant/components/auth/login_flow.py63 "handler": ["insecure_example", null],
HIGHhomeassistant/components/rainmachine/sensor.py338 # Timestamp may return 0 instead of null, explicitly set to None
HIGHhomeassistant/components/matter/models.py146 # for example to filter out invalid values (such as empty string instead of null)
HIGHhomeassistant/components/maxcube/climate.py141 Both parameters are optional. When mode is undefined, it keeps
HIGHhomeassistant/components/maxcube/climate.py142 the previous mode. When temp is undefined, it fetches the
HIGHtests/test_core.py1116 b'"context":{"id":"01H0D6K3RFJAYAV2093ZW30PCW","parent_id":null,"user_id":null}}'
HIGHtests/components/template/test_light.py973 (None, "[{{(360)}},{{null}}]", ColorMode.HS),
HIGHtests/components/matter/test_sensor.py851 # Test setting to 0 (invalid/null) - should result in unknown state
HIGHtests/components/matter/test_number.py82 # Set a concrete value (not null)
HIGHtests/components/pvpc_hourly_pricing/conftest.py77 '"values_updated_at":null,"values":[]}}'
HIGHtests/components/tasmota/test_config_flow.py36 '"fn":["Tasmota",null,null,null,null,'
HIGHtests/components/tasmota/test_config_flow.py37 'null,null,null],"hn":"tasmota_0848A2",'
HIGHtests/components/tasmota/test_config_flow.py42 '"swn":[null,null,null,null,null,null,null,null],"btn":[0,0,0,0,0,0,0,0],'
HIGHtests/components/tasmota/test_config_flow.py75 '"fn":["Tasmota",null,null,null,null,'
HIGHtests/components/tasmota/test_config_flow.py76 'null,null,null],"hn":"tasmota_0848A2",'
HIGHtests/components/tasmota/test_config_flow.py81 '"swn":[null,null,null,null,null,null,null,null],"btn":[0,0,0,0,0,0,0,0],'
HIGHtests/components/tasmota/test_config_flow.py102 '"fn":["Tasmota",null,null,null,null,'
HIGHtests/components/tasmota/test_config_flow.py103 'null,null,null],"hn":"tasmota_0848A2",'
HIGHtests/components/tasmota/test_config_flow.py108 '"swn":[null,null,null,null,null,null,null,null],"btn":[0,0,0,0,0,0,0,0],'
HIGHtests/components/victron_gx/test_time.py106 '{"value": null}',
HIGHtests/components/roborock/mock_data.py161 '{"max": 100, "min": 0, "step": 1, "unit": null, "scale": 1}'
HIGHtests/components/roborock/mock_data.py172 '{"max": 100, "min": 0, "step": 1, "unit": null, "scale": 1}'
HIGHtests/components/roborock/mock_data.py183 '{"max": 100, "min": 0, "step": 1, "unit": null, "scale": 1}'
HIGHtests/components/nightscout/__init__.py24 '{"status":"ok","name":"nightscout","version":"13.0.1","serverTime":"2020-08-05T18:14:02.032Z","serverTimeEpoch"
HIGHtests/components/nightscout/__init__.py73 '{"advanced":true,"days":1}},"authorized":null}'
HIGHtests/components/intent_script/test_init.py188 "reprompt": {"text": "{{ null }}"},
HIGHtests/components/mqtt/test_device_tracker.py479 hass, "attributes-topic", '{"longitude": -117.22743, "latitude":null}'
HIGHtests/components/mqtt/test_device_tracker.py521 '{"latitude": null,"longitude": "-117.22743",'
HIGHtests/components/mqtt/test_device_tracker.py777 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_water_heater.py1271 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_time.py588 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_light_template.py1550 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_light_template.py1581 async_fire_mqtt_message(hass, "test-topic", '{"r": 255, "g": 255, "b": null }')
HIGHtests/components/mqtt/test_select.py162 async_fire_mqtt_message(hass, "test/select_stat", '{"val": null}')
HIGHtests/components/mqtt/test_select.py861 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_siren.py194 async_fire_mqtt_message(hass, "state-topic", '{"val": null }')
HIGHtests/components/mqtt/test_siren.py1137 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_light_json.py440 async_fire_mqtt_message(hass, "test_light_rgb", '{"state": null}')
HIGHtests/components/mqtt/test_light_json.py756 '"color":null,'
HIGHtests/components/mqtt/test_light_json.py2364 '{"state":"ON", "color": null, "color_temp": 100, "color_mode": "color_temp"}',
HIGHtests/components/mqtt/test_valve.py202 ('{"position":null}', STATE_UNKNOWN),
HIGHtests/components/mqtt/test_valve.py326 ('{"position": 100, "state": null}', ValveState.OPEN, 100),
HIGHtests/components/mqtt/test_valve.py1491 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_image.py826 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_lawn_mower.py215 async_fire_mqtt_message(hass, "test/lawn_mower_stat", '{"val": null}')
HIGHtests/components/mqtt/test_lawn_mower.py955 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_alarm_control_panel.py1466 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_fan.py406 async_fire_mqtt_message(hass, "state-topic", '{"val": null}')
HIGHtests/components/mqtt/test_fan.py2431 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_humidifier.py414 async_fire_mqtt_message(hass, "state-topic", '{"val": null}')
HIGHtests/components/mqtt/test_humidifier.py431 async_fire_mqtt_message(hass, "action-topic", '{"val": null}')
HIGHtests/components/mqtt/test_humidifier.py1632 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_update.py945 async_fire_mqtt_message(hass, "test-topic", '{"some_var": null }')
HIGHtests/components/mqtt/test_update.py512 async_fire_mqtt_message(hass, state_topic, '{"update_percentage":null}')
HIGHtests/components/mqtt/test_update.py898 ("test-topic", '{"update_percentage": 100}', '{"update_percentage": null}'),
HIGHtests/components/mqtt/test_discovery.py1213 '"state_topic": "test-topic", "o": null }',
HIGHtests/components/mqtt/test_discovery.py1242 '"state_topic":"test-topic"}},"o": null}',
31 more matches not shown…
Decorative Section Separators104 hits · 386 pts
SeverityFileLineSnippet
MEDIUMhomeassistant/components/logbook/models.py98# ---------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py61 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py63 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py86 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py88 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py96 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py98 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py113 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py115 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py138 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/teleinfo/sensor.py140 # ------------------------------------------------------------------
MEDIUMhomeassistant/components/immich/media_source.py87 # --------------------------------------------------------
MEDIUMhomeassistant/components/immich/media_source.py89 # --------------------------------------------------------
MEDIUMhomeassistant/components/immich/media_source.py105 # --------------------------------------------------------
MEDIUMhomeassistant/components/immich/media_source.py107 # --------------------------------------------------------
MEDIUMhomeassistant/components/immich/media_source.py132 # --------------------------------------------------------
MEDIUMhomeassistant/components/immich/media_source.py134 # --------------------------------------------------------
MEDIUMhomeassistant/components/immich/media_source.py198 # --------------------------------------------------------
MEDIUMhomeassistant/components/immich/media_source.py200 # --------------------------------------------------------
MEDIUMhomeassistant/components/intent/timers.py513# -----------------------------------------------------------------------------
MEDIUMhomeassistant/components/wyoming/assist_satellite.py393 # -------------------------------------------------------------------------
MEDIUMhomeassistant/components/wyoming/assist_satellite.py417 # -------------------------------------------------------------------------
MEDIUMhomeassistant/components/wyoming/assist_satellite.py493 # -------------------------------------------------------------------------
MEDIUMhomeassistant/components/voip/assist_satellite.py357 # -------------------------------------------------------------------------
MEDIUMhomeassistant/components/voip/assist_satellite.py359 # -------------------------------------------------------------------------
MEDIUMhomeassistant/components/zwave_js/binary_sensor.py994 # -------------------------------------------------------------------
MEDIUMhomeassistant/components/zwave_js/binary_sensor.py1002 # -------------------------------------------------------------------
MEDIUMhomeassistant/components/zwave_js/binary_sensor.py1174 # -------------------------------------------------------------------
MEDIUMhomeassistant/components/zwave_js/binary_sensor.py1327 # -------------------------------------------------------------------
MEDIUMtests/components/jewish_calendar/test_calendar.py82# ─── Event Format ─────────────────────────────────────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py51# ─── Entity Registration ─────────────────────────────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py116# ─── Daily Events ────────────────────────────────────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py136# ─── Yearly Events: Weekly Torah Portion ──────────────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py216# ─── Yearly Events: Holidays ─────────────────────────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py234# ─── Yearly Events: Omer Count ───────────────────────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py256# ─── Yearly Events: Candle Lighting & Havdalah ───────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py313# ─── Learning Schedule ───────────────────────────────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py334# ─── Custom Configuration ────────────────────────────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py393# ─── Date Range Queries ──────────────────────────────────────────────
MEDIUMtests/components/jewish_calendar/test_calendar.py410# ─── Calendar State / Event Property ─────────────────────────────────
MEDIUMtests/components/waterfurnace/test_statistics.py122# ---------------------------------------------------------------------------
MEDIUMtests/components/waterfurnace/test_statistics.py124# ---------------------------------------------------------------------------
MEDIUMtests/components/waterfurnace/test_statistics.py291# ---------------------------------------------------------------------------
MEDIUMtests/components/waterfurnace/test_statistics.py293# ---------------------------------------------------------------------------
MEDIUMtests/components/energyid/test_init.py732# ============================================================================
MEDIUMtests/components/energyid/test_init.py734# ============================================================================
MEDIUMtests/components/energyid/test_init.py788# ============================================================================
MEDIUMtests/components/energyid/test_init.py790# ============================================================================
MEDIUMtests/components/energyid/test_init.py839# ============================================================================
MEDIUMtests/components/energyid/test_init.py841# ============================================================================
MEDIUMtests/components/energyid/test_init.py900# ============================================================================
MEDIUMtests/components/energyid/test_init.py902# ============================================================================
MEDIUMtests/components/energyid/test_init.py957# ============================================================================
MEDIUMtests/components/energyid/test_init.py959# ============================================================================
MEDIUMtests/components/energyid/test_init.py996# ============================================================================
MEDIUMtests/components/energyid/test_init.py998# ============================================================================
MEDIUMtests/components/energyid/test_init.py1038# ============================================================================
MEDIUMtests/components/energyid/test_init.py1040# ============================================================================
MEDIUMtests/components/fing/test_device_tracker.py92 # ----------------------------------------------------
MEDIUMtests/components/fing/test_device_tracker.py100 # ----------------------------------------------------
44 more matches not shown…
Fake / Example Data128 hits · 141 pts
SeverityFileLineSnippet
LOWhomeassistant/components/auth/__init__.py82 "name": "John Doe",
LOWtests/test_data_entry_flow.py183 "section_1": {"full_name": "John Doe"},
LOWtests/test_data_entry_flow.py207 assert section_markers[0].description == {"suggested_value": "John Doe"}
LOWtests/components/zinvolt/conftest.py31 title="test@test.com",
LOWtests/components/zinvolt/test_config_flow.py31 CONF_EMAIL: "test@test.com",
LOWtests/components/zinvolt/test_config_flow.py37 assert result["title"] == "test@test.com"
LOWtests/components/zinvolt/test_config_flow.py68 CONF_EMAIL: "test@test.com",
LOWtests/components/zinvolt/test_config_flow.py81 CONF_EMAIL: "test@test.com",
LOWtests/components/zinvolt/test_config_flow.py104 CONF_EMAIL: "test@test.com",
LOWtests/components/onedrive_for_business/conftest.py67 title="John Doe's OneDrive",
LOWtests/components/onedrive_for_business/conftest.py133 display_name="John Doe",
LOW…s/components/onedrive_for_business/test_config_flow.py107 assert result["title"] == "John Doe's OneDrive (john@doe.com)"
LOW…s/components/onedrive_for_business/test_config_flow.py196 assert result["title"] == "John Doe's OneDrive (john@doe.com)"
LOWtests/components/onedrive_for_business/const.py28 display_name="John Doe",
LOWtests/components/litterrobot/common.py6CONFIG = {DOMAIN: {CONF_USERNAME: "user@example.com", CONF_PASSWORD: "password"}}
LOWtests/components/paj_gps/test_config_flow.py20 CONF_EMAIL: "user@example.com",
LOWtests/components/paj_gps/test_config_flow.py28 ("user@example.com", "user@example.com"),
LOWtests/components/paj_gps/test_config_flow.py29 (" USER@EXAMPLE.COM ", "user@example.com"),
LOWtests/components/aquacell/__init__.py16 CONF_EMAIL: "test@test.com",
LOWtests/components/aquacell/__init__.py24 CONF_EMAIL: "test@test.com",
LOWtests/components/aquacell/__init__.py31 CONF_EMAIL: "test@test.com",
LOWtests/components/poolsense/conftest.py61 title="test@test.com",
LOWtests/components/poolsense/conftest.py62 unique_id="test@test.com",
LOWtests/components/poolsense/conftest.py64 CONF_EMAIL: "test@test.com",
LOWtests/components/poolsense/test_config_flow.py29 user_input={CONF_EMAIL: "test@test.com", CONF_PASSWORD: "test"},
LOWtests/components/poolsense/test_config_flow.py33 assert result["title"] == "test@test.com"
LOWtests/components/poolsense/test_config_flow.py35 CONF_EMAIL: "test@test.com",
LOWtests/components/poolsense/test_config_flow.py38 assert result["result"].unique_id == "test@test.com"
LOWtests/components/poolsense/test_config_flow.py52 data={CONF_EMAIL: "test@test.com", CONF_PASSWORD: "test"},
LOWtests/components/poolsense/test_config_flow.py62 user_input={CONF_EMAIL: "test@test.com", CONF_PASSWORD: "test"},
LOWtests/components/poolsense/test_config_flow.py78 data={CONF_EMAIL: "test@test.com", CONF_PASSWORD: "test"},
LOWtests/components/onedrive/conftest.py68 title="John Doe's OneDrive",
LOWtests/components/onedrive/conftest.py115 display_name="John Doe",
LOWtests/components/onedrive/conftest.py154 display_name="John Doe",
LOWtests/components/onedrive/test_config_flow.py99 assert result["title"] == "John Doe's OneDrive"
LOWtests/components/onedrive/test_config_flow.py176 assert result["title"] == "John Doe's OneDrive"
LOWtests/components/onedrive/test_init.py237 title="John Doe's OneDrive",
LOWtests/components/onedrive/test_init.py259 title="John Doe's OneDrive",
LOWtests/components/onedrive/test_init.py282 title="John Doe's OneDrive",
LOWtests/components/onedrive/const.py27 display_name="John Doe",
LOWtests/components/vicare/__init__.py13 CONF_USERNAME: "foo@bar.com",
LOWtests/components/vicare/test_init.py45 CONF_USERNAME: "foo@bar.com",
LOWtests/components/vicare/test_init.py85 CONF_USERNAME: "foo@bar.com",
LOWtests/components/vicare/test_init.py117 CONF_USERNAME: "foo@bar.com",
LOWtests/components/vicare/test_init.py149 CONF_USERNAME: "foo@bar.com",
LOWtests/components/sharkiq/const.py79UNIQUE_ID = "foo@bar.com"
LOWtests/components/unifi_access/test_event.py374 assert front_state.attributes["actor"] == "John Doe"
LOWtests/components/unifi_access/test_event.py380 assert back_state.attributes["actor"] == "John Doe"
LOWtests/components/unifi_access/test_event.py144 "John Doe",
LOWtests/components/unifi_access/test_event.py362 actor=InsightsMetadataEntry(display_name="John Doe"),
LOWtests/components/unifi_access/test_event.py449 actor=LogActor(display_name="John Doe"),
LOWtests/components/unifi_access/test_event.py462 assert state.attributes["actor"] == "John Doe"
LOWtests/components/unifi_access/test_event.py702 actor=LogActor(display_name="John Doe"),
LOWtests/components/unifi_access/test_event.py727 actor=LogActor(display_name="Jane Doe"),
LOWtests/components/unifi_access/test_event.py778 actor=LogActor(display_name="John Doe"),
LOWtests/components/unifi_access/test_event.py1074 actor=LogActor(display_name="Jane Doe"),
LOWtests/components/unifi_access/test_event.py1087 assert state.attributes["actor"] == "Jane Doe"
LOWtests/components/ekeybionyx/conftest.py168 title="test@test.com",
LOWtests/components/heos/test_services.py31 {ATTR_USERNAME: "test@test.com", ATTR_PASSWORD: "password"},
LOWtests/components/heos/test_services.py35 controller.sign_in.assert_called_once_with("test@test.com", "password")
68 more matches not shown…
Over-Commented Block98 hits · 90 pts
SeverityFileLineSnippet
LOWpyproject.toml141# locally-disabled - it spams too much
LOWpyproject.toml501 # https://github.com/pyusb/pyusb/pull/545 - >1.3.1
LOWpyproject.toml541 # https://github.com/python-telegram-bot/python-telegram-bot/blob/v22.7/src/telegram/error.py#L243 - 22.7 - 2026-03-16
LOWpyproject.toml601 "ignore:with timeout\\(\\) is deprecated:DeprecationWarning:aiomodernforms.modernforms",
LOWrequirements_all.txt21# homeassistant.components.tasmota
LOWhomeassistant/bootstrap.py161 "sentry",
LOWhomeassistant/bootstrap.py761 # to speed things up.
LOWhomeassistant/bootstrap.py841
LOWhomeassistant/package_constraints.txt201tenacity!=8.4.0
LOWhomeassistant/core.py2321 else:
LOWhomeassistant/setup.py41_LOGGER = logging.getLogger(__name__)
LOWhomeassistant/util/dt.py481
LOWhomeassistant/util/dt.py501 # Example: on 2021.10.31 02:00:00 in CET timezone clocks are turned
LOWhomeassistant/util/async_.py81 # the executor and `.join()` the thread running this code.
LOWhomeassistant/components/soundtouch/media_player.py361 # Client devices do NOT return their siblings as part of the "slaves" list.
LOWhomeassistant/components/sun/condition.py61 tomorrow = today + timedelta(days=1)
LOWhomeassistant/components/goodwe/sensor.py41
LOWhomeassistant/components/homekit/type_lights.py261 and isinstance(brightness, (int, float))
LOWhomeassistant/components/hyperion/config_flow.py41 DOMAIN,
LOWhomeassistant/components/hyperion/config_flow.py61# | Static |
LOWhomeassistant/components/hyperion/config_flow.py81# v<------------------+
LOWhomeassistant/components/hyperion/config_flow.py161 # 'deviceType': 'urn:schemas-upnp-org:device:Basic:1',
LOWhomeassistant/components/hyperion/config_flow.py181 # 'height': '100',
LOWhomeassistant/components/websocket_api/http.py441 return connection
LOWhomeassistant/components/websocket_api/http.py461 # - We end up disconnecting the client. The client will then reconnect,
LOWhomeassistant/components/xbox/entity.py181 # creates issues with loading the image.
LOWhomeassistant/components/apple_tv/config_flow.py241 self.scan_filter = host
LOWhomeassistant/components/apple_tv/config_flow.py261 # code below will check these identifiers for all active flows and abort if a
LOWhomeassistant/components/flexit_bacnet/number.py41
LOW…sistant/components/withings/application_credentials.py41 # "status": [{integer} Withings API response status],
LOWhomeassistant/components/system_log/__init__.py81 # Slice the stack to the first frame that matches
LOWhomeassistant/components/system_log/__init__.py101 #
LOWhomeassistant/components/stream/worker.py201 # Only do extra fragmenting if we are using ll_hls
LOWhomeassistant/components/stream/worker.py221 # the resulting fragments can have variability in their
LOWhomeassistant/components/stream/worker.py641 # 2 - seeking can be problematic https://trac.ffmpeg.org/ticket/7815
LOWhomeassistant/components/stream/hls.py201 # Since our window doesn't have many segments, we don't want to start
LOWhomeassistant/components/motionmount/config_flow.py21
LOWhomeassistant/components/homekit_controller/const.py121# 10 seconds was chosen because it is soon enough
LOW…assistant/components/homekit_controller/config_flow.py401 # phase of pairing. If this is successful the device enters pairing
LOWhomeassistant/components/doorbird/models.py21 # This integration uses a different event for
LOWhomeassistant/components/matter/models.py141 # for example for the AcceptedCommandList
LOWhomeassistant/components/growatt_server/coordinator.py161 )
LOWhomeassistant/components/ibeacon/coordinator.py401 if group_id not in self._unavailable_group_ids
LOWhomeassistant/components/todoist/const.py61ID: Final = "id"
LOWhomeassistant/components/homematicip_cloud/__init__.py161 # migration. Two collision shapes are handled here:
LOWhomeassistant/components/bluetooth/__init__.py181 call_debouncer_job = HassJob(_async_call_debouncer, cancel_on_shutdown=True)
LOWhomeassistant/components/recorder/statistics.py2961
LOWhomeassistant/components/recorder/migration.py1181 _add_columns(self.session_maker, "events", ["context_parent_id CHARACTER(36)"])
LOWhomeassistant/components/recorder/migration.py1621
LOWhomeassistant/components/recorder/filters.py161 " has_config before calling this method."
LOWhomeassistant/components/recorder/filters.py181 # - Entity listed in entities include: include
LOWhomeassistant/components/recorder/models/database.py21 version: AwesomeVersion | None
LOWhomeassistant/components/recorder/models/database.py41 # https://github.com/home-assistant/core/issues/137178
LOWhomeassistant/components/zwave_js/models.py181 # [optional] the node's product_id must match ANY of these values
LOWhomeassistant/components/zwave_js/discovery.py101 # [optional] template to generate platform specific data to use in setup
LOWhomeassistant/components/zwave_js/binary_sensor.py181
LOWhomeassistant/components/zwave_js/binary_sensor.py201# - Maintenance required, planned periodic inspection
LOWhomeassistant/components/netatmo/sensor.py121 return "High"
LOWhomeassistant/components/netatmo/binary_sensor.py101 NetatmoBinarySensorEntityDescription(
LOWhomeassistant/components/onvif/event_manager.py61# We only keep the subscription alive for 10 minutes, and will keep
38 more matches not shown…
AI Slop Vocabulary51 hits · 87 pts
SeverityFileLineSnippet
LOW…ome_assistant/checkers/actions/swallowed_exceptions.py55 # Empty body (just pass) or log-only body
MEDIUMhomeassistant/loader.py1683 """Mount config dir in order to load custom_component.
MEDIUMhomeassistant/components/intellifire/config_flow.py115 """Authenticate against IFTAPI Cloud in order to see configured devices.
MEDIUMhomeassistant/components/wallbox/coordinator.py102 """Check if the jwtToken is still valid in order to reuse if possible."""
LOWhomeassistant/components/vizio/media_player.py279 # show the combination with, otherwise just return inputs
LOWhomeassistant/components/energy/data.py809 # If power_config has stat_rate (standard), just use it directly
LOWhomeassistant/components/energy/data.py827 # If power_config has stat_rate (standard), just use it directly
LOWhomeassistant/components/system_log/__init__.py72 # exception). In that case, just use the file where the log was made from.
LOWhomeassistant/components/alexa/handlers.py672 # This workaround will simply call the volume up/Volume down the amount of
MEDIUMhomeassistant/components/cast/media_player.py293 """Ensure chromecast is available, to facilitate type checking."""
LOWhomeassistant/components/stream/worker.py483 # For the bounds, just use the larger of the two values. If the error
LOWhomeassistant/components/deluge/sensor.py30 # if key is CURRENT_STATUS, we just return whether
LOWhomeassistant/components/oralb/__init__.py49 # BluetoothServiceInfoBleak is defined in HA, otherwise would just pass it
LOW…tant/components/hunterdouglas_powerview/diagnostics.py50 # otherwise just return all shade data
LOWhomeassistant/components/matter/vacuum.py94 # We simply set the RvcRunMode to the first runmode
LOWhomeassistant/components/matter/vacuum.py132 # We simply set the RvcRunMode to the first runmode
LOWhomeassistant/components/growatt_server/coordinator.py381 # local time in that scenario we should just return the previous value
LOWhomeassistant/components/slimproto/config_flow.py22 # we have nothing to configure so simply create the entry
LOWhomeassistant/components/todoist/calendar.py722 # If we have no data, we can just return right away.
LOWhomeassistant/components/geo_rss_events/sensor.py150 # If no events were found due to an error then just set state to
LOWhomeassistant/components/device_automation/condition.py68 # we just pass the entire config as options.
LOWhomeassistant/components/apcupsd/coordinator.py48 # We had user reports that some UPS models simply return
LOWhomeassistant/components/cloud/http_api.py458 # just add the domain
MEDIUMhomeassistant/components/tplink/light.py290 # except when transition is defined so we leverage that for now.
LOWhomeassistant/components/peblar/number.py117 # If charging is currently disabled (below 6 amps), just set the value
LOWhomeassistant/components/xiaomi_ble/__init__.py147 # BluetoothServiceInfoBleak is defined in HA, otherwise would just pass it
MEDIUMhomeassistant/components/caldav/coordinator.py28 """Class to utilize the calendar dav client object to get next event."""
LOWhomeassistant/components/rest/notify.py157 # integrations, so just return the first target in the list.
MEDIUMhomeassistant/components/zha/entity.py197 # provides a more generic hook to utilize HA to do this), we directly restore
LOWhomeassistant/components/zha/config_flow.py342 # Allow onboarding for new users to just create a new network automatically
MEDIUMhomeassistant/helpers/intent.py520 """Match entities based on constraints in order to handle an intent."""
MEDIUMtests/components/liebherr/conftest.py32# Complete multi-zone device for comprehensive testing
MEDIUMtests/components/tod/test_binary_sensor.py635 # Essentially, the ToD sensor never turns on that day.
LOWtests/components/intellifire/test_config_flow.py40 # For a single fireplace we just create it
LOWtests/components/intellifire/test_config_flow.py74 # For a single fireplace we just create it
LOWtests/components/intellifire/test_config_flow.py110 # For a single fireplace we just create it
LOWtests/components/google/test_calendar.py846 # just use the API response which this test is not exercising)
LOWtests/components/schlage/test_lock.py360 # Should not raise an error, just return silently
LOWtests/components/schlage/test_lock.py381 # Should not raise an error, just return silently
MEDIUMtests/components/homekit_controller/common.py45# Root device in test harness always has an accessory id of this
LOWtests/components/music_assistant/conftest.py77 # simply return a mock config for each player
MEDIUMtests/components/generic_thermostat/test_climate.py1345 # this test harness). Update the entity to OFF so the thermostat sees the
LOWtests/components/chacon_dio/test_cover.py145 # Define a method to simply call it
LOWtests/components/chacon_dio/test_switch.py102 # Define a method to simply call it
LOWtests/components/balboa/test_fan.py63 # just call turn on, pump should be at full speed
MEDIUMtests/components/application_credentials/test_init.py123 """Fixture to facilitate testing an OAuth flow."""
LOW…ts/components/eurotronic_cometblue/test_config_flow.py220 # If for some reason no name can be derived, just return the default name
LOW…ts/components/eurotronic_cometblue/test_config_flow.py223 # If the name is the same as the address, just return
MEDIUMtests/components/conversation/test_chat_log.py866 """Test comprehensive chat log subscription functionality."""
MEDIUMtests/components/owntracks/test_device_tracker.py920 # message. None is the state the test harness set for
MEDIUM…affold/templates/config_flow_oauth2/integration/api.py11# TODO the following two API examples are based on our suggested best practices
Verbosity Indicators20 hits · 34 pts
SeverityFileLineSnippet
LOWhomeassistant/components/control4/config_flow.py63 # Step 1: Authenticate with Control4 cloud API
LOWhomeassistant/components/control4/config_flow.py88 # Step 2: Connect to local Control4 Director
LOWhomeassistant/components/home_connect/common.py91 when they are turned off, so we need to check if the entities have been added
LOWhomeassistant/components/onewire/sensor.py441 # We need to check if there is TAI8570 plugged in
LOWtests/components/omie/test_sensor.py62 # Step 1: 1 PM CET (before 13:30 CET publication)
LOWtests/components/omie/test_sensor.py69 # Step 2: 3 PM CET - verify listeners update with existing data, no new API calls
LOWtests/components/omie/test_sensor.py129 # Step 1: 1 PM CET (before 13:30 CET publication) - only Jan 15 data available
LOWtests/components/omie/test_sensor.py135 # Step 2: 2 PM CET (after 13:30 CET publication) - Jan 16 data now available
LOWtests/components/omie/test_sensor.py144 # Step 3: 3 PM CET - verify listeners update with existing data, no new API calls
LOWtests/components/improv_ble/test_config_flow.py237 # Step 1: Inject provisioned device advertisement (triggers discovery, aborts)
LOWtests/components/improv_ble/test_config_flow.py245 # Step 2: Inject same provisioned advertisement again
LOWtests/components/generic_thermostat/test_climate.py1929 # Step 2: The heater should have been turned on
LOWtests/components/generic_thermostat/test_climate.py1939 # Step 4: The climate entity should keep the parent (user) context,
LOWtests/components/growatt_server/test_sensor.py240 # Step 1: Midnight reset — API returns 0 (legitimate reset)
LOWtests/components/growatt_server/test_sensor.py254 # Step 2: Stale bounce — API returns yesterday's value (12.5) after reset
LOWtests/components/growatt_server/test_sensor.py269 # Step 3: Another reset arrives — still 0 (no double-counting)
LOWtests/components/growatt_server/test_sensor.py283 # Step 4: Genuine new production — small value passes through
LOWtests/components/unifiprotect/test_binary_sensor.py781 # Step 1: Initial event with only VEHICLE detection (car arriving)
LOWtests/components/unifiprotect/test_binary_sensor.py819 # Step 2: Same event gets updated to include PERSON detection
LOWtests/components/unifiprotect/test_binary_sensor.py881 # Step 3: Event ends - both sensors should turn OFF
Slop Phrases7 hits · 12 pts
SeverityFileLineSnippet
LOWhomeassistant/core_config.py451 # Init whitelist external URL list – make sure to add / to every URL that doesn't
LOWhomeassistant/components/soundtouch/media_player.py313 # make sure to not try to remove the master (aka current device)
MEDIUMhomeassistant/components/motionblinds_ble/strings.json72 "description": "The default disconnect time is 15 seconds, adjustable using the slider below. You may want to ad
LOWhomeassistant/components/sftp_storage/__init__.py105 # leftover files, make sure to log plain
LOWhomeassistant/components/matter/entity.py151 # make sure to update the attributes once
LOWtests/components/picnic/test_config_flow.py388 # Create a mocked config entry and make sure to use the same
LOWscript/hassfest/docker.py12# Don't forget to update also Dockerfile.dev when updating this.
Docstring Block Structure1 hit · 5 pts
SeverityFileLineSnippet
HIGHhomeassistant/components/slack/notify.py332Get the Slack channel ID from the channel name. This method retrieves the channel ID for a given Slack channel
Magic Placeholder Names1 hit · 5 pts
SeverityFileLineSnippet
HIGHtests/components/transport_nsw/test_sensor.py15 "api_key": "YOUR_API_KEY",
Dead Code2 hits · 4 pts
SeverityFileLineSnippet
MEDIUMtests/components/elevenlabs/test_stt.py59
MEDIUMtests/components/sonos/test_services.py121
Overly Generic Function Names2 hits · 2 pts
SeverityFileLineSnippet
LOWhomeassistant/components/blue_current/__init__.py175 async def run_task(self) -> None:
LOWtests/components/websocket_api/test_decorators.py16 def handle_request(request, connection, msg):