mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 10:17:09 +00:00
Use DeviceInfo in sharkiq (#58519)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
parent
9d3c75510f
commit
c1dc2bbf28
@ -123,15 +123,15 @@ class SharkVacuumEntity(CoordinatorEntity, StateVacuumEntity):
|
|||||||
@property
|
@property
|
||||||
def device_info(self) -> DeviceInfo:
|
def device_info(self) -> DeviceInfo:
|
||||||
"""Device info dictionary."""
|
"""Device info dictionary."""
|
||||||
return {
|
return DeviceInfo(
|
||||||
"identifiers": {(DOMAIN, self.serial_number)},
|
identifiers={(DOMAIN, self.serial_number)},
|
||||||
"name": self.name,
|
manufacturer=SHARK,
|
||||||
"manufacturer": SHARK,
|
model=self.model,
|
||||||
"model": self.model,
|
name=self.name,
|
||||||
"sw_version": self.sharkiq.get_property_value(
|
sw_version=self.sharkiq.get_property_value(
|
||||||
Properties.ROBOT_FIRMWARE_VERSION
|
Properties.ROBOT_FIRMWARE_VERSION
|
||||||
),
|
),
|
||||||
}
|
)
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def supported_features(self) -> int:
|
def supported_features(self) -> int:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user