From d27c91b9fed08970685d0908ad25397f5d16defb Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Thu, 28 Oct 2021 16:07:37 +0200 Subject: [PATCH] Use DeviceInfo in tasmota (#58604) Co-authored-by: epenet <epenet@users.noreply.github.com> --- homeassistant/components/tasmota/mixins.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/homeassistant/components/tasmota/mixins.py b/homeassistant/components/tasmota/mixins.py index 8c7ef9ba703..1cac7fc2d4b 100644 --- a/homeassistant/components/tasmota/mixins.py +++ b/homeassistant/components/tasmota/mixins.py @@ -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: -- GitLab