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