mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 13:17:32 +00:00
Use device name stored in device_info for tag scan in ESPHome (#40130)
This commit is contained in:
parent
d3bb2e5e16
commit
abca177894
@ -133,9 +133,10 @@ async def async_setup_entry(hass: HomeAssistantType, entry: ConfigEntry) -> bool
|
||||
# Call native tag scan
|
||||
if service_name == "tag_scanned":
|
||||
tag_id = service_data["tag_id"]
|
||||
device_id = service_data["device_id"]
|
||||
hass.async_create_task(
|
||||
hass.components.tag.async_scan_tag(tag_id, device_id)
|
||||
hass.components.tag.async_scan_tag(
|
||||
tag_id, entry_data.device_info.name
|
||||
)
|
||||
)
|
||||
return
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user