Check if robot has boundaries to update (#38030)

This commit is contained in:
Daniel Shokouhi 2020-07-20 22:00:11 -07:00 committed by GitHub
parent 83d4e5bbb7
commit 7bc8caca96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -264,6 +264,7 @@ class NeatoConnectedVacuum(StateVacuumEntity):
maps["name"], maps["name"],
robot_boundaries, robot_boundaries,
) )
if "boundaries" in robot_boundaries["data"]:
self._robot_boundaries += robot_boundaries["data"]["boundaries"] self._robot_boundaries += robot_boundaries["data"]["boundaries"]
_LOGGER.debug( _LOGGER.debug(
"List of boundaries for '%s': %s", "List of boundaries for '%s': %s",