From 1804006da0524c373b0fd75cef4e2ab10b17ca9f Mon Sep 17 00:00:00 2001 From: RenierM26 <66512715+RenierM26@users.noreply.github.com> Date: Sat, 7 Jan 2023 21:39:15 +0200 Subject: [PATCH] EZVIZ: Add mac to device info (#85378) Co-authored-by: Franck Nijhof --- homeassistant/components/ezviz/entity.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/ezviz/entity.py b/homeassistant/components/ezviz/entity.py index e4debedc640..1c966c7f82e 100644 --- a/homeassistant/components/ezviz/entity.py +++ b/homeassistant/components/ezviz/entity.py @@ -3,6 +3,7 @@ from __future__ import annotations from typing import Any +from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC from homeassistant.helpers.entity import DeviceInfo, Entity from homeassistant.helpers.update_coordinator import CoordinatorEntity @@ -24,6 +25,9 @@ class EzvizEntity(CoordinatorEntity[EzvizDataUpdateCoordinator], Entity): self._camera_name = self.data["name"] self._attr_device_info = DeviceInfo( identifiers={(DOMAIN, serial)}, + connections={ + (CONNECTION_NETWORK_MAC, self.data["mac_address"]), + }, manufacturer=MANUFACTURER, model=self.data["device_sub_category"], name=self.data["name"],