mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 21:27:38 +00:00
Add hardware version to Roomba (#103171)
This commit is contained in:
parent
8b7cfc070e
commit
cef68ea33c
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user