# entity.device_info.set

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

## Summary

Entity sets device_info

## Why

Providing device_info groups entities under a device in the device registry, improving the user experience in Settings → Devices & Services. Note: this rule uses AST inspection; it checks for _attr_device_info assignment or a device_info property/method returning DeviceInfo(...).

## Status behavior

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

## Source

- https://developers.home-assistant.io/docs/device_registry_index/#defining-devices
- `source_checked_at`: 2026-05-01

<!-- HANDWRITTEN BELOW THIS LINE -->
