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 Franck Nijhof
parent 34751fcd86
commit 0cd8dce9df
No known key found for this signature in database
GPG key ID: D62583BA8AB11CA3

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):