From c5bd1ac9c40d354dc36b6a85b970d80013200717 Mon Sep 17 00:00:00 2001 From: epenet Date: Wed, 27 Oct 2021 09:23:44 +0000 Subject: [PATCH] Use DeviceInfo in smarttub --- 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 49d5e94d76e55..45f4556398c23 100644 --- a/homeassistant/components/smarttub/entity.py +++ b/homeassistant/components/smarttub/entity.py @@ -35,11 +35,11 @@ def unique_id(self) -> str: @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: