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,12 +264,13 @@ class NeatoConnectedVacuum(StateVacuumEntity):
maps["name"], maps["name"],
robot_boundaries, robot_boundaries,
) )
self._robot_boundaries += robot_boundaries["data"]["boundaries"] if "boundaries" in robot_boundaries["data"]:
_LOGGER.debug( self._robot_boundaries += robot_boundaries["data"]["boundaries"]
"List of boundaries for '%s': %s", _LOGGER.debug(
self.entity_id, "List of boundaries for '%s': %s",
self._robot_boundaries, self.entity_id,
) self._robot_boundaries,
)
@property @property
def name(self): def name(self):