Home Assistant Unofficial Reference 2024.12.1
device_registry.py File Reference

Go to the source code of this file.

Classes

class  homeassistant.helpers.device_registry._EventDeviceRegistryUpdatedData_CreateRemove
 
class  homeassistant.helpers.device_registry._EventDeviceRegistryUpdatedData_Update
 
class  homeassistant.helpers.device_registry.ActiveDeviceRegistryItems
 
class  homeassistant.helpers.device_registry.DeletedDeviceEntry
 
class  homeassistant.helpers.device_registry.DeviceCollisionError
 
class  homeassistant.helpers.device_registry.DeviceConnectionCollisionError
 
class  homeassistant.helpers.device_registry.DeviceEntry
 
class  homeassistant.helpers.device_registry.DeviceEntryDisabler
 
class  homeassistant.helpers.device_registry.DeviceEntryType
 
class  homeassistant.helpers.device_registry.DeviceIdentifierCollisionError
 
class  homeassistant.helpers.device_registry.DeviceInfo
 
class  homeassistant.helpers.device_registry.DeviceInfoError
 
class  homeassistant.helpers.device_registry.DeviceRegistry
 
class  homeassistant.helpers.device_registry.DeviceRegistryItems
 
class  homeassistant.helpers.device_registry.DeviceRegistryStore
 

Namespaces

 homeassistant.helpers.device_registry
 

Functions

None homeassistant.helpers.device_registry.__init__ (self)
 
None homeassistant.helpers.device_registry._index_entry (self, str key, _EntryTypeT entry)
 
set[tuple[str, str]] homeassistant.helpers.device_registry._normalize_connections (set[tuple[str, str]] connections)
 
None homeassistant.helpers.device_registry._unindex_entry (self, str key, _EntryTypeT|None replacement_entry=None)
 
str|None homeassistant.helpers.device_registry._validate_configuration_url (Any value)
 
str homeassistant.helpers.device_registry._validate_device_info (ConfigEntry config_entry, DeviceInfo device_info)
 
None homeassistant.helpers.device_registry.async_cleanup (HomeAssistant hass, DeviceRegistry dev_reg, entity_registry.EntityRegistry ent_reg)
 
None homeassistant.helpers.device_registry.async_config_entry_disabled_by_changed (DeviceRegistry registry, ConfigEntry config_entry)
 
list[DeviceEntry] homeassistant.helpers.device_registry.async_entries_for_area (DeviceRegistry registry, str area_id)
 
list[DeviceEntry] homeassistant.helpers.device_registry.async_entries_for_config_entry (DeviceRegistry registry, str config_entry_id)
 
list[DeviceEntry] homeassistant.helpers.device_registry.async_entries_for_label (DeviceRegistry registry, str label_id)
 
DeviceRegistry homeassistant.helpers.device_registry.async_get (HomeAssistant hass)
 
None homeassistant.helpers.device_registry.async_load (HomeAssistant hass)
 
None homeassistant.helpers.device_registry.async_setup_cleanup (HomeAssistant hass, DeviceRegistry dev_reg)
 
str homeassistant.helpers.device_registry.format_mac (str mac)
 
_EntryTypeT|None homeassistant.helpers.device_registry.get_entry (self, set[tuple[str, str]]|None identifiers, set[tuple[str, str]]|None connections)
 

Variables

 homeassistant.helpers.device_registry.__all__ = all_with_deprecated_constants(globals())
 
 homeassistant.helpers.device_registry.__dir__
 
 homeassistant.helpers.device_registry.__getattr__ = partial(check_if_deprecated_constant, module_globals=globals())
 
 homeassistant.helpers.device_registry._cached_parse_url = lru_cache(maxsize=512)(URL)
 
 homeassistant.helpers.device_registry._DEPRECATED_DISABLED_CONFIG_ENTRY
 
 homeassistant.helpers.device_registry._DEPRECATED_DISABLED_INTEGRATION
 
 homeassistant.helpers.device_registry._DEPRECATED_DISABLED_USER = DeprecatedConstantEnum(DeviceEntryDisabler.USER, "2025.1")
 
 homeassistant.helpers.device_registry._LOGGER = logging.getLogger(__name__)
 
int homeassistant.helpers.device_registry.CLEANUP_DELAY = 10
 
dictionary homeassistant.helpers.device_registry.CONFIGURATION_URL_SCHEMES = {"http", "https", "homeassistant"}
 
string homeassistant.helpers.device_registry.CONNECTION_BLUETOOTH = "bluetooth"
 
string homeassistant.helpers.device_registry.CONNECTION_NETWORK_MAC = "mac"
 
string homeassistant.helpers.device_registry.CONNECTION_UPNP = "upnp"
 
string homeassistant.helpers.device_registry.CONNECTION_ZIGBEE = "zigbee"
 
 homeassistant.helpers.device_registry.DEVICE_INFO_KEYS = set.union(*(itm for itm in DEVICE_INFO_TYPES.values()))
 
dictionary homeassistant.helpers.device_registry.DEVICE_INFO_TYPES
 
 homeassistant.helpers.device_registry.EventDeviceRegistryUpdatedData
 
dictionary homeassistant.helpers.device_registry.LOW_PRIO_CONFIG_ENTRY_DOMAINS = {"homekit_controller", "matter", "mqtt", "upnp"}
 
int homeassistant.helpers.device_registry.ORPHANED_DEVICE_KEEP_SECONDS = 86400 * 30
 
dictionary homeassistant.helpers.device_registry.RUNTIME_ONLY_ATTRS = {"suggested_area"}
 
string homeassistant.helpers.device_registry.STORAGE_KEY = "core.device_registry"
 
int homeassistant.helpers.device_registry.STORAGE_VERSION_MAJOR = 1
 
int homeassistant.helpers.device_registry.STORAGE_VERSION_MINOR = 8