Home Assistant Unofficial Reference
2024.12.1
hass_dict.py
Go to the documentation of this file.
1
"""Implementation for HassDict and custom HassKey types.
2
3
Custom for type checking. See stub file.
4
"""
5
6
from
__future__
import
annotations
7
8
9
class
HassKey
[_T](str):
10
"""Generic Hass key type.
11
12
At runtime this is a generic subclass of str.
13
"""
14
15
__slots__ = ()
16
17
18
class
HassEntryKey
[_T](str):
19
"""Key type for integrations with config entries.
20
21
At runtime this is a generic subclass of str.
22
"""
23
24
__slots__ = ()
25
26
27
HassDict = dict
homeassistant.util.hass_dict.HassEntryKey
Definition:
hass_dict.py:18
homeassistant.util.hass_dict.HassKey
Definition:
hass_dict.py:9
core
homeassistant
util
hass_dict.py
Generated by
1.9.1