Fix botvac when no map exists (#21877)
This commit is contained in:
parent
896075fa1c
commit
2d2abc7831
1 changed files with 5 additions and 3 deletions
|
@ -187,10 +187,12 @@ class NeatoConnectedVacuum(StateVacuumDevice):
|
||||||
|
|
||||||
if self._robot_has_map:
|
if self._robot_has_map:
|
||||||
if self._state['availableServices']['maps'] != "basic-1":
|
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(
|
self._robot_boundaries = self.robot.get_map_boundaries(
|
||||||
robot_map_id).json()
|
robot_map_id).json()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def name(self):
|
def name(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue