forked from home-assistant/core
Use DeviceInfo in sharkiq (#58519)
Co-authored-by: epenet <epenet@users.noreply.github.com>
This commit is contained in:
@@ -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:
|
||||||
|
Reference in New Issue
Block a user