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