mirror of
https://github.com/home-assistant/core.git
synced 2026-09-24 23:41:48 -05:00
Add model_id to NVR device info in UniFi Protect (#158481)
Co-authored-by: RaHehl <rahehl@users.noreply.github.com>
This commit is contained in:
@@ -319,7 +319,8 @@ class ProtectNVREntity(BaseProtectEntity):
|
||||
identifiers={(DOMAIN, self.device.mac)},
|
||||
manufacturer=DEFAULT_BRAND,
|
||||
name=self.device.display_name,
|
||||
model=self.device.type,
|
||||
model=self.device.market_name or self.device.type,
|
||||
model_id=self.device.type,
|
||||
sw_version=str(self.device.version),
|
||||
configuration_url=self.device.api.base_url,
|
||||
)
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
}),
|
||||
'manufacturer': 'Ubiquiti',
|
||||
'model': 'UNVR-PRO',
|
||||
'model_id': None,
|
||||
'model_id': 'UNVR-PRO',
|
||||
'name': 'UnifiProtect',
|
||||
'name_by_user': None,
|
||||
'primary_config_entry': <ANY>,
|
||||
|
||||
Reference in New Issue
Block a user