1 """Functions to generate names for devices and entities."""
7 """Return the UID for the SAM device."""
12 """Return the UID for a given system (e.g., 1) under a SAM."""
13 return f
"{sam_uid}-S{system_id}"
17 """Return the UID for a given system and zone (e.g., 1 and 2) under a SAM."""
18 return f
"{sam_uid}-S{system_id}-Z{zone_id}"
str system_device_uid(str sam_uid, int system_id)
str sam_device_uid(ConfigEntry entry)
str zone_entity_uid(str sam_uid, int system_id, int zone_id)