Remove mac address from Pooldose device (#151536)

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
This commit is contained in:
Lukas
2025-09-01 23:19:24 +02:00
committed by Franck Nijhof
parent e57019a80b
commit 9910df2b21
2 changed files with 1 additions and 8 deletions

View File

@@ -4,7 +4,7 @@ from __future__ import annotations
from typing import Any
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.entity import EntityDescription
from homeassistant.helpers.update_coordinator import CoordinatorEntity
@@ -32,9 +32,6 @@ def device_info(info: dict | None, unique_id: str) -> DeviceInfo:
else None
),
hw_version=info.get("FW_CODE") or None,
connections=(
{(CONNECTION_NETWORK_MAC, str(info["MAC"]))} if info.get("MAC") else set()
),
configuration_url=(
f"http://{info['IP']}/index.html" if info.get("IP") else None
),

View File

@@ -6,10 +6,6 @@
'config_entries_subentries': <ANY>,
'configuration_url': 'http://192.168.1.100/index.html',
'connections': set({
tuple(
'mac',
'aa:bb:cc:dd:ee:ff',
),
}),
'disabled_by': None,
'entry_type': None,