Include mac address in rainmachine device info (#50438)

This commit is contained in:
J. Nick Koston 2021-05-11 00:06:49 -05:00 committed by GitHub
parent d4cdb8e7e8
commit 34320ef617
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ from homeassistant.const import (
from homeassistant.core import HomeAssistant, callback
from homeassistant.exceptions import ConfigEntryNotReady
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.update_coordinator import (
CoordinatorEntity,
@ -196,6 +197,7 @@ class RainMachineEntity(CoordinatorEntity):
"""Return device registry information for this entity."""
return {
"identifiers": {(DOMAIN, self._controller.mac)},
"connections": {(dr.CONNECTION_NETWORK_MAC, self._controller.mac)},
"name": self._controller.name,
"manufacturer": "RainMachine",
"model": (