Add shared hass.data keys/constants for cleaner integration state storage (local)
parent
8034ada12f
commit
ee7be37ba6
|
|
@ -1,8 +1,8 @@
|
||||||
"""Shared keys and helpers for storing integration runtime state in hass.data.
|
"""Shared keys and helpers for storing integration runtime state in hass.data.
|
||||||
|
|
||||||
This integration uses `hass.data[DOMAIN][entry_id]` as a per-entry dictionary.
|
This integration uses `hass.data[DOMAIN][entry_id]` as a per-entry dictionary.
|
||||||
Keeping keys in one place prevents subtle bugs where different modules
|
Keeping keys in one place prevents subtle bugs where different modules store
|
||||||
store different value types under the same key.
|
different value types under the same key.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue