Use DeviceInfo in smarttub (#58524)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
8e62fc254a
commit
80bbfde07e
1 changed files with 5 additions and 5 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Reference in a new issue