mirror of
https://github.com/home-assistant/core.git
synced 2025-07-16 09:47:13 +00:00
Use DeviceInfo in tasmota (#58604)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
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…
x
Reference in New Issue
Block a user