Enable Ruff D212 (#87347)
This commit is contained in:
parent
97de0c6d9a
commit
ca1a12898c
237 changed files with 353 additions and 707 deletions
|
@ -1,5 +1,4 @@
|
|||
"""
|
||||
Manage allocation of accessory ID's.
|
||||
"""Manage allocation of accessory ID's.
|
||||
|
||||
HomeKit needs to allocate unique numbers to each accessory. These need to
|
||||
be stable between reboots and upgrades.
|
||||
|
@ -60,8 +59,7 @@ def _generate_aids(unique_id: str | None, entity_id: str) -> Generator[int, None
|
|||
|
||||
|
||||
class AccessoryAidStorage:
|
||||
"""
|
||||
Holds a map of entity ID to HomeKit ID.
|
||||
"""Holds a map of entity ID to HomeKit ID.
|
||||
|
||||
Will generate new ID's, ensure they are unique and store them to make sure they
|
||||
persist over reboots.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue