Use DeviceInfo in smarttub ()

Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
epenet 2021-10-27 13:17:20 +02:00 committed by GitHub
parent 8e62fc254a
commit 80bbfde07e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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