Classes | |
| class | AccessoryAidStorage |
Functions | |
| Generator[int] | _generate_aids (str|None unique_id, str entity_id) |
| str | get_system_unique_id (er.RegistryEntry entity, str entity_unique_id) |
Variables | |
| int | AID_MANAGER_SAVE_DELAY = 2 |
| int | AID_MANAGER_STORAGE_VERSION = 1 |
| int | AID_MAX = 18446744073709551615 |
| int | AID_MIN = 2 |
| string | ALLOCATIONS_KEY = "allocations" |
| tuple | INVALID_AIDS = (0, 1) |
| string | UNIQUE_IDS_KEY = "unique_ids" |
Manage allocation of accessory ID's. HomeKit needs to allocate unique numbers to each accessory. These need to be stable between reboots and upgrades. Using a hash function to generate them means collisions. It also means you can't change the hash without causing breakages for HA users. This module generates and stores them in a HA storage.
|
private |
Generate accessory aid.
Definition at line 42 of file aidmanager.py.
| str homeassistant.components.homekit.aidmanager.get_system_unique_id | ( | er.RegistryEntry | entity, |
| str | entity_unique_id | ||
| ) |
Determine the system wide unique_id for an entity.
Definition at line 37 of file aidmanager.py.
| int homeassistant.components.homekit.aidmanager.AID_MANAGER_SAVE_DELAY = 2 |
Definition at line 26 of file aidmanager.py.
| int homeassistant.components.homekit.aidmanager.AID_MANAGER_STORAGE_VERSION = 1 |
Definition at line 25 of file aidmanager.py.
| int homeassistant.components.homekit.aidmanager.AID_MAX = 18446744073709551615 |
Definition at line 34 of file aidmanager.py.
| int homeassistant.components.homekit.aidmanager.AID_MIN = 2 |
Definition at line 33 of file aidmanager.py.
| string homeassistant.components.homekit.aidmanager.ALLOCATIONS_KEY = "allocations" |
Definition at line 28 of file aidmanager.py.
| tuple homeassistant.components.homekit.aidmanager.INVALID_AIDS = (0, 1) |
Definition at line 31 of file aidmanager.py.
| string homeassistant.components.homekit.aidmanager.UNIQUE_IDS_KEY = "unique_ids" |
Definition at line 29 of file aidmanager.py.