From 56b4369f448b3ca1cdad54efd159cf83932e09ef Mon Sep 17 00:00:00 2001 From: Jan-Philipp Benecke Date: Wed, 1 Nov 2023 17:53:40 +0100 Subject: [PATCH] Add MAC address to bsblan device info (#103180) --- homeassistant/components/bsblan/entity.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/bsblan/entity.py b/homeassistant/components/bsblan/entity.py index d45749a9a86..3c7f41ce34d 100644 --- a/homeassistant/components/bsblan/entity.py +++ b/homeassistant/components/bsblan/entity.py @@ -5,7 +5,11 @@ from bsblan import BSBLAN, Device, Info, StaticState from homeassistant.config_entries import ConfigEntry from homeassistant.const import CONF_HOST -from homeassistant.helpers.device_registry import DeviceInfo, format_mac +from homeassistant.helpers.device_registry import ( + CONNECTION_NETWORK_MAC, + DeviceInfo, + format_mac, +) from homeassistant.helpers.entity import Entity from .const import DOMAIN @@ -26,6 +30,7 @@ class BSBLANEntity(Entity): self.client = client self._attr_device_info = DeviceInfo( + connections={(CONNECTION_NETWORK_MAC, format_mac(device.MAC))}, identifiers={(DOMAIN, format_mac(device.MAC))}, manufacturer="BSBLAN Inc.", model=info.device_identification.value,