Use DeviceInfo in tasmota (#58604)
Co-authored-by: epenet <epenet@users.noreply.github.com>pull/58625/head
parent
a0a8b9db26
commit
d27c91b9fe
|
@ -62,7 +62,9 @@ class TasmotaEntity(Entity):
|
|||
@property
|
||||
def device_info(self) -> DeviceInfo:
|
||||
"""Return a device description for device registry."""
|
||||
return {"connections": {(CONNECTION_NETWORK_MAC, self._tasmota_entity.mac)}}
|
||||
return DeviceInfo(
|
||||
connections={(CONNECTION_NETWORK_MAC, self._tasmota_entity.mac)}
|
||||
)
|
||||
|
||||
@property
|
||||
def name(self) -> str | None:
|
||||
|
|
Loading…
Reference in New Issue