mirror of
https://github.com/home-assistant/core.git
synced 2025-07-22 12:47:08 +00:00
Include mac address in rainmachine device info (#50438)
This commit is contained in:
parent
d4cdb8e7e8
commit
34320ef617
@ -18,6 +18,7 @@ from homeassistant.const import (
|
|||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.exceptions import ConfigEntryNotReady
|
from homeassistant.exceptions import ConfigEntryNotReady
|
||||||
from homeassistant.helpers import aiohttp_client, config_validation as cv
|
from homeassistant.helpers import aiohttp_client, config_validation as cv
|
||||||
|
import homeassistant.helpers.device_registry as dr
|
||||||
from homeassistant.helpers.entity import DeviceInfo
|
from homeassistant.helpers.entity import DeviceInfo
|
||||||
from homeassistant.helpers.update_coordinator import (
|
from homeassistant.helpers.update_coordinator import (
|
||||||
CoordinatorEntity,
|
CoordinatorEntity,
|
||||||
@ -196,6 +197,7 @@ class RainMachineEntity(CoordinatorEntity):
|
|||||||
"""Return device registry information for this entity."""
|
"""Return device registry information for this entity."""
|
||||||
return {
|
return {
|
||||||
"identifiers": {(DOMAIN, self._controller.mac)},
|
"identifiers": {(DOMAIN, self._controller.mac)},
|
||||||
|
"connections": {(dr.CONNECTION_NETWORK_MAC, self._controller.mac)},
|
||||||
"name": self._controller.name,
|
"name": self._controller.name,
|
||||||
"manufacturer": "RainMachine",
|
"manufacturer": "RainMachine",
|
||||||
"model": (
|
"model": (
|
||||||
|
Loading…
x
Reference in New Issue
Block a user