Use device info object in ezviz (#99280)
This commit is contained in:
parent
fae50169d9
commit
38267699e5
1 changed files with 6 additions and 6 deletions
|
@ -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…
Add table
Reference in a new issue