From 80bbfde07e7b6fb74c664b43b4812c352b0f729c Mon Sep 17 00:00:00 2001 From: epenet <6771947+epenet@users.noreply.github.com> Date: Wed, 27 Oct 2021 13:17:20 +0200 Subject: [PATCH] Use DeviceInfo in smarttub (#58524) Co-authored-by: epenet --- homeassistant/components/smarttub/entity.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/homeassistant/components/smarttub/entity.py b/homeassistant/components/smarttub/entity.py index 49d5e94d76e..45f4556398c 100644 --- a/homeassistant/components/smarttub/entity.py +++ b/homeassistant/components/smarttub/entity.py @@ -35,11 +35,11 @@ class SmartTubEntity(CoordinatorEntity): @property def device_info(self) -> DeviceInfo: """Return device info.""" - return { - "identifiers": {(DOMAIN, self.spa.id)}, - "manufacturer": self.spa.brand, - "model": self.spa.model, - } + return DeviceInfo( + identifiers={(DOMAIN, self.spa.id)}, + manufacturer=self.spa.brand, + model=self.spa.model, + ) @property def name(self) -> str: