From e201293848984b0b3ea574b3b454d4ed8e12feed Mon Sep 17 00:00:00 2001 From: Paulus Schoutsen Date: Tue, 4 Jan 2022 04:49:15 -0800 Subject: [PATCH] Add MAC to WLED device (#63349) --- homeassistant/components/wled/models.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/homeassistant/components/wled/models.py b/homeassistant/components/wled/models.py index a71491daf7a..664bc309e33 100644 --- a/homeassistant/components/wled/models.py +++ b/homeassistant/components/wled/models.py @@ -1,4 +1,5 @@ """Models for WLED.""" +from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC from homeassistant.helpers.entity import DeviceInfo from homeassistant.helpers.update_coordinator import CoordinatorEntity @@ -15,6 +16,9 @@ class WLEDEntity(CoordinatorEntity): def device_info(self) -> DeviceInfo: """Return device information about this WLED device.""" return DeviceInfo( + connections={ + (CONNECTION_NETWORK_MAC, self.coordinator.data.info.mac_address) + }, identifiers={(DOMAIN, self.coordinator.data.info.mac_address)}, name=self.coordinator.data.info.name, manufacturer=self.coordinator.data.info.brand,