Use DeviceInfo in tasmota (#58604)

Co-authored-by: epenet <epenet@users.noreply.github.com>
pull/58625/head
epenet 2021-10-28 16:07:37 +02:00 committed by GitHub
parent a0a8b9db26
commit d27c91b9fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -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: