mirror of
https://github.com/home-assistant/core.git
synced 2025-04-24 01:08:12 +00:00
Use Bravia TV MAC address in DeviceInfo.connections
(#126519)
This commit is contained in:
parent
ef39ee1d5d
commit
11bb8e402e
@ -1,6 +1,6 @@
|
||||
"""A entity class for Bravia TV integration."""
|
||||
|
||||
from homeassistant.helpers.device_registry import DeviceInfo
|
||||
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo
|
||||
from homeassistant.helpers.update_coordinator import CoordinatorEntity
|
||||
|
||||
from . import BraviaTVCoordinator
|
||||
@ -28,3 +28,7 @@ class BraviaTVEntity(CoordinatorEntity[BraviaTVCoordinator]):
|
||||
model=model,
|
||||
name=f"{ATTR_MANUFACTURER} {model}",
|
||||
)
|
||||
if coordinator.client.mac is not None:
|
||||
self._attr_device_info["connections"] = {
|
||||
(CONNECTION_NETWORK_MAC, coordinator.client.mac)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user