# config_flow.unique_id.set

> **Generated from `RuleDefinition` metadata.** Edit only the section below the
> "HANDWRITTEN BELOW" marker; everything above is regenerated by
> `hasscheck docs-render`.

## Summary

config_flow.py sets a unique ID

## Why

Setting a unique ID via async_set_unique_id prevents duplicate config entries and enables entity deduplication across restarts. Note: this rule uses AST inspection; it detects any call to async_set_unique_id anywhere in the module.

## Status behavior

| Field | Value |
|---|---|
| Category | modern_ha_patterns |
| Severity | recommended |
| Overridable | True |
| Version | 1.0.0 |

## Source

- https://developers.home-assistant.io/docs/config_entries_config_flow_handler/#unique-ids
- `source_checked_at`: 2026-05-01

<!-- HANDWRITTEN BELOW THIS LINE -->
