Fix Roomba exception (#15262)

* Fix Roomba exception

* Switch to single quotes
This commit is contained in:
David Worsham authored and Pascal Vizeli committed 2018-07-02 14:12:25 +02:00
1 parent 4d93a9fd38
commit 36f566a529
1 file changed
+3 -1
+3 -1
View File
@@ -284,7 +284,9 @@ class RoombaVacuum(VacuumDevice):
software_version = state.get('softwareVer')
# 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._status = self.vacuum.current_state