Fix botvac when no map exists (#21877)
parent
1b4905ae5a
commit
00d01865cf
|
@ -187,10 +187,12 @@ class NeatoConnectedVacuum(StateVacuumDevice):
|
|||
|
||||
if self._robot_has_map:
|
||||
if self._state['availableServices']['maps'] != "basic-1":
|
||||
robot_map_id = self._robot_maps[self._robot_serial][0]['id']
|
||||
if self._robot_maps[self._robot_serial]:
|
||||
robot_map_id = (
|
||||
self._robot_maps[self._robot_serial][0]['id'])
|
||||
|
||||
self._robot_boundaries = self.robot.get_map_boundaries(
|
||||
robot_map_id).json()
|
||||
self._robot_boundaries = self.robot.get_map_boundaries(
|
||||
robot_map_id).json()
|
||||
|
||||
@property
|
||||
def name(self):
|
||||
|
|
Loading…
Reference in New Issue