Skip to content

Commit

Permalink
Fixes for preliminary VSLAM support
Browse files Browse the repository at this point in the history
  • Loading branch information
Yiğit Topcu committed Nov 28, 2022
1 parent 0cb4e85 commit 58572b0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion custom_components/dreame_vacuum/dreame/device.py
Original file line number Diff line number Diff line change
Expand Up @@ -712,7 +712,7 @@ def connect_cloud(self) -> None:
self.two_factor_url = None
self._property_changed()

if self._protocol.device.connected:
if self._protocol.connected:
self._map_manager.schedule_update(5)
self.token, self.host = self._protocol.cloud.get_info(
self.mac)
Expand Down
4 changes: 3 additions & 1 deletion custom_components/dreame_vacuum/dreame/map.py
Original file line number Diff line number Diff line change
Expand Up @@ -2816,6 +2816,7 @@ def render_map(self, map_data: MapData, robot_status: int = 0) -> bytes:
self._map_data
and self._map_data == map_data
and self._map_data.segments == map_data.segments
and self._map_data.frame_id == map_data.frame_id
and self._map_data_json
):
_LOGGER.debug("Skip render map data, not changed")
Expand Down Expand Up @@ -3555,7 +3556,8 @@ def render_map(self, map_data: MapData, robot_status: int = 0) -> bytes:
and self._map_data == map_data
and self._robot_status == robot_status
and self._map_data.segments == map_data.segments
and self._image
and self._map_data.frame_id == map_data.frame_id
and self._image
):
self.render_complete = True
_LOGGER.info("Skip render frame, map data not changed")
Expand Down
2 changes: 1 addition & 1 deletion custom_components/dreame_vacuum/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@
"python-miio>=0.5.6",
"py-mini-racer"
],
"version": "v0.15.1",
"version": "v0.15.2",
"iot_class": "local_polling"
}

0 comments on commit 58572b0

Please sign in to comment.