Fix for Neato D3 Connected state obtaining (#8817)
This commit is contained in:
1 parent
55c84eaee3
commit
b035577cf5
2 files changed
+2
-2
No files matched your search
@@ -105,7 +105,7 @@ class NeatoConnectedSensor(Entity):
|
||||
self._status_state = ERRORS.get(self._state['error'])
|
||||
if self.type == SENSOR_TYPE_BATTERY:
|
||||
self._battery_state = self._state['details']['charge']
|
||||
if self._mapdata is None:
|
||||
if not self._mapdata.get(self.robot.serial, {}).get('maps', []):
|
||||
return
|
||||
self.clean_time_start = (
|
||||
(self._mapdata[self.robot.serial]['maps'][0]['start_at']
|
||||
|
||||
Reference in new issue
Block a user