# entity.has_entity_name.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 _attr_has_entity_name = True

## Why

_attr_has_entity_name = True is mandatory for new integrations as of HA 2023.x. It enables proper entity naming conventions where the device name is the prefix. Note: this rule only triggers PASS for literal True; False is treated as absent.

## Status behavior

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

## Source

- https://developers.home-assistant.io/docs/core/entity/#has_entity_name-true-mandatory-for-new-integrations
- `source_checked_at`: 2026-05-01

<!-- HANDWRITTEN BELOW THIS LINE -->
