mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Fix Roomba exception (#15262)
* Fix Roomba exception * Switch to single quotes
This commit is contained in:
parent
4d93a9fd38
commit
36f566a529
@ -284,6 +284,8 @@ class RoombaVacuum(VacuumDevice):
|
||||
software_version = state.get('softwareVer')
|
||||
|
||||
# Error message in plain english
|
||||
error_msg = 'None'
|
||||
if hasattr(self.vacuum, 'error_message'):
|
||||
error_msg = self.vacuum.error_message
|
||||
|
||||
self._battery_level = state.get('batPct')
|
||||
|
Loading…
x
Reference in New Issue
Block a user