Skip to content

Commit 5aa0d0d

Browse files
authored
Remove Shelly redundant device info assignment in Button class (home-assistant#149469)
1 parent e1501d7 commit 5aa0d0d

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

homeassistant/components/shelly/button.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
from homeassistant.core import HomeAssistant, callback
2020
from homeassistant.exceptions import HomeAssistantError
2121
from homeassistant.helpers import entity_registry as er
22-
from homeassistant.helpers.device_registry import CONNECTION_NETWORK_MAC, DeviceInfo
2322
from homeassistant.helpers.entity_platform import AddConfigEntryEntitiesCallback
2423
from homeassistant.helpers.update_coordinator import CoordinatorEntity
2524
from homeassistant.util import slugify
@@ -251,9 +250,6 @@ def __init__(
251250
coordinator.model_name,
252251
suggested_area=coordinator.suggested_area,
253252
)
254-
self._attr_device_info = DeviceInfo(
255-
connections={(CONNECTION_NETWORK_MAC, coordinator.mac)}
256-
)
257253

258254
async def _press_method(self) -> None:
259255
"""Press method."""

0 commit comments

Comments
 (0)