Skip to content

Commit 9b6b800

Browse files
lmaertinCopilot
andauthored
Remove mac address from Pooldose device (home-assistant#151536)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
1 parent 2503157 commit 9b6b800

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

homeassistant/components/pooldose/entity.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
from typing import Any
66

7-
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo
7+
from homeassistant.helpers.device_registry import DeviceInfo
88
from homeassistant.helpers.entity import EntityDescription
99
from homeassistant.helpers.update_coordinator import CoordinatorEntity
1010

@@ -32,9 +32,6 @@ def device_info(info: dict | None, unique_id: str) -> DeviceInfo:
3232
else None
3333
),
3434
hw_version=info.get("FW_CODE") or None,
35-
connections=(
36-
{(CONNECTION_NETWORK_MAC, str(info["MAC"]))} if info.get("MAC") else set()
37-
),
3835
configuration_url=(
3936
f"http://{info['IP']}/index.html" if info.get("IP") else None
4037
),

tests/components/pooldose/snapshots/test_init.ambr

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,6 @@
66
'config_entries_subentries': <ANY>,
77
'configuration_url': 'http://192.168.1.100/index.html',
88
'connections': set({
9-
tuple(
10-
'mac',
11-
'aa:bb:cc:dd:ee:ff',
12-
),
139
}),
1410
'disabled_by': None,
1511
'entry_type': None,

0 commit comments

Comments
 (0)