mirror of
https://github.com/home-assistant/core.git
synced 2025-07-10 06:47:09 +00:00
Use DeviceInfo in smarttub (#58524)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
8e62fc254a
commit
80bbfde07e
@ -35,11 +35,11 @@ class SmartTubEntity(CoordinatorEntity):
|
|||||||
@property
|
@property
|
||||||
def device_info(self) -> DeviceInfo:
|
def device_info(self) -> DeviceInfo:
|
||||||
"""Return device info."""
|
"""Return device info."""
|
||||||
return {
|
return DeviceInfo(
|
||||||
"identifiers": {(DOMAIN, self.spa.id)},
|
identifiers={(DOMAIN, self.spa.id)},
|
||||||
"manufacturer": self.spa.brand,
|
manufacturer=self.spa.brand,
|
||||||
"model": self.spa.model,
|
model=self.spa.model,
|
||||||
}
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self) -> str:
|
def name(self) -> str:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user