mirror of
https://github.com/home-assistant/core.git
synced 2026-04-27 04:58:16 +00:00
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:
@@ -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
|
||||
),
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user