# init.runtime_data.used

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

## Summary

__init__.py uses entry.runtime_data

## Why

entry.runtime_data is the HA 2024.4+ recommended way to store per-entry runtime objects instead of the older hass.data[DOMAIN][entry.entry_id] pattern. Note: this rule uses AST inspection; it looks for attribute access on names 'entry', 'config_entry', or '_entry'.

## 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_index/#runtime_data
- `source_checked_at`: 2026-05-01

<!-- HANDWRITTEN BELOW THIS LINE -->
