mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 14:27:07 +00:00
Fix botvac when no map exists (#21877)
This commit is contained in:
parent
1b4905ae5a
commit
00d01865cf
@ -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…
x
Reference in New Issue
Block a user