Use DeviceInfo on esphome (#58396)
Co-authored-by: epenet <epenet@users.noreply.github.com>pull/58374/head^2
parent
4d7c55ff0e
commit
48c85fb839
|
@ -755,9 +755,9 @@ class EsphomeEntity(Entity, Generic[_InfoT, _StateT]):
|
|||
@property
|
||||
def device_info(self) -> DeviceInfo:
|
||||
"""Return device registry information for this entity."""
|
||||
return {
|
||||
"connections": {(dr.CONNECTION_NETWORK_MAC, self._device_info.mac_address)}
|
||||
}
|
||||
return DeviceInfo(
|
||||
connections={(dr.CONNECTION_NETWORK_MAC, self._device_info.mac_address)}
|
||||
)
|
||||
|
||||
@property
|
||||
def name(self) -> str:
|
||||
|
|
Loading…
Reference in New Issue