From fc8f87658a98ddf4c524152e07713fc995fe8f41 Mon Sep 17 00:00:00 2001 From: sebo-hri-lab <74572322+sebo-hri-lab@users.noreply.github.com> Date: Wed, 1 Feb 2023 18:54:54 -0600 Subject: [PATCH 1/2] Update animation.py --- anki_vector/animation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/anki_vector/animation.py b/anki_vector/animation.py index ddbdd3e..24c0e78 100644 --- a/anki_vector/animation.py +++ b/anki_vector/animation.py @@ -165,7 +165,8 @@ async def load_animation_list(self): for anim_name in anim_names: print(anim_name) """ - return await self._load_animation_list() + # Modified due to timeout error + return [] # await self._load_animation_list() @connection.on_connection_thread(log_messaging=False, requires_control=False) async def load_animation_trigger_list(self): @@ -188,7 +189,8 @@ async def load_animation_trigger_list(self): for anim_trigger_name in anim_trigger_names: print(anim_trigger_name) """ - return await self._load_animation_trigger_list() + # Modified due to timeout error + return [] # await self._load_animation_trigger_list() @connection.on_connection_thread() async def play_animation_trigger(self, anim_trigger: str, loop_count: int = 1, use_lift_safe: bool = False, ignore_body_track: bool = False, ignore_head_track: bool = False, ignore_lift_track: bool = False): # START From 824552bf9a27db0037183da57e054b7f10c9dfd5 Mon Sep 17 00:00:00 2001 From: sebo-hri-lab <74572322+sebo-hri-lab@users.noreply.github.com> Date: Wed, 1 Feb 2023 18:57:09 -0600 Subject: [PATCH 2/2] Update events.py --- anki_vector/events.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/anki_vector/events.py b/anki_vector/events.py index 259bc28..385ab6a 100644 --- a/anki_vector/events.py +++ b/anki_vector/events.py @@ -247,7 +247,8 @@ async def _handle_event_stream(self): unpackaged_event_key, unpackaged_event_data = self._unpackage_event('event_type', evt.event) await self.dispatch_event_by_name(unpackaged_event_data, unpackaged_event_key) except TypeError: - self.logger.warning('Unknown Event type') + pass # Removed due to error in future SDK + # self.logger.warning('Unknown Event type') except CancelledError: self.logger.debug('Event handler task was cancelled. This is expected during disconnection.')