mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +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
|
@property
|
||||||
def device_info(self) -> DeviceInfo:
|
def device_info(self) -> DeviceInfo:
|
||||||
"""Return a device description for device registry."""
|
"""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
|
@property
|
||||||
def name(self) -> str | None:
|
def name(self) -> str | None:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user