Fix Roomba exception (#15262)

* Fix Roomba exception

* Switch to single quotes
This commit is contained in:
David Worsham 2018-07-02 05:12:25 -07:00 committed by Pascal Vizeli
parent 4d93a9fd38
commit 36f566a529

View File

@ -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')