Add hardware version to Roomba (#103171)

This commit is contained in:
Xitee 2023-11-01 15:21:42 +01:00 committed by GitHub
parent 8b7cfc070e
commit cef68ea33c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -71,6 +71,7 @@ class IRobotEntity(Entity):
self.vacuum_state = roomba_reported_state(roomba)
self._name = self.vacuum_state.get("name")
self._version = self.vacuum_state.get("softwareVer")
self._hw_version = self.vacuum_state.get("hardwareRev")
self._sku = self.vacuum_state.get("sku")
@property
@ -99,6 +100,7 @@ class IRobotEntity(Entity):
model=self._sku,
name=str(self._name),
sw_version=self._version,
hw_version=self._hw_version,
)
@property