mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Use device info object in ezviz (#99280)
This commit is contained in:
parent
fae50169d9
commit
38267699e5
@ -66,12 +66,12 @@ async def async_setup_entry(
|
||||
DATA_COORDINATOR
|
||||
]
|
||||
|
||||
device_info: DeviceInfo = {
|
||||
"identifiers": {(DOMAIN, entry.unique_id)}, # type: ignore[arg-type]
|
||||
"name": "EZVIZ Alarm",
|
||||
"model": "EZVIZ Alarm",
|
||||
"manufacturer": MANUFACTURER,
|
||||
}
|
||||
device_info = DeviceInfo(
|
||||
identifiers={(DOMAIN, entry.unique_id)}, # type: ignore[arg-type]
|
||||
name="EZVIZ Alarm",
|
||||
model="EZVIZ Alarm",
|
||||
manufacturer=MANUFACTURER,
|
||||
)
|
||||
|
||||
async_add_entities(
|
||||
[EzvizAlarm(coordinator, entry.entry_id, device_info, ALARM_TYPE)]
|
||||
|
Loading…
x
Reference in New Issue
Block a user