Functions | |
| dr.DeviceInfo|None | async_device_info_to_link_from_device_id (HomeAssistant hass, str|None device_id) |
| dr.DeviceInfo|None | async_device_info_to_link_from_entity (HomeAssistant hass, str entity_id_or_uuid) |
| str|None | async_entity_id_to_device_id (HomeAssistant hass, str entity_id_or_uuid) |
| None | async_remove_stale_devices_links_keep_current_device (HomeAssistant hass, str entry_id, str|None current_device_id) |
| None | async_remove_stale_devices_links_keep_entity_device (HomeAssistant hass, str entry_id, str source_entity_id_or_uuid) |
Provides useful helpers for handling devices.
| dr.DeviceInfo | None homeassistant.helpers.device.async_device_info_to_link_from_device_id | ( | HomeAssistant | hass, |
| str | None | device_id | ||
| ) |
| dr.DeviceInfo | None homeassistant.helpers.device.async_device_info_to_link_from_entity | ( | HomeAssistant | hass, |
| str | entity_id_or_uuid | ||
| ) |
| str | None homeassistant.helpers.device.async_entity_id_to_device_id | ( | HomeAssistant | hass, |
| str | entity_id_or_uuid | ||
| ) |
| None homeassistant.helpers.device.async_remove_stale_devices_links_keep_current_device | ( | HomeAssistant | hass, |
| str | entry_id, | ||
| str | None | current_device_id | ||
| ) |
| None homeassistant.helpers.device.async_remove_stale_devices_links_keep_entity_device | ( | HomeAssistant | hass, |
| str | entry_id, | ||
| str | source_entity_id_or_uuid | ||
| ) |