From b8d9a6fdf6bcee99b0f186a9d1100ab763e3839c Mon Sep 17 00:00:00 2001 From: JarbasAI <33701864+JarbasAl@users.noreply.github.com> Date: Tue, 15 Oct 2024 19:07:20 +0100 Subject: [PATCH] support latest pyee (#276) --- ovos_utils/fakebus.py | 4 ++-- requirements/requirements.txt | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ovos_utils/fakebus.py b/ovos_utils/fakebus.py index 4e86ddca..d08300fc 100644 --- a/ovos_utils/fakebus.py +++ b/ovos_utils/fakebus.py @@ -2,7 +2,7 @@ from copy import deepcopy from threading import Event -from pyee import BaseEventEmitter +from pyee import EventEmitter from ovos_utils.log import LOG, log_deprecation @@ -20,7 +20,7 @@ class FakeBus: def __init__(self, *args, **kwargs): self.started_running = False self.session_id = "default" - self.ee = kwargs.get("emitter") or BaseEventEmitter() + self.ee = kwargs.get("emitter") or EventEmitter() self.ee.on("error", self.on_error) self.on_open() try: diff --git a/requirements/requirements.txt b/requirements/requirements.txt index 70a857a1..53510a83 100644 --- a/requirements/requirements.txt +++ b/requirements/requirements.txt @@ -3,7 +3,7 @@ requests~=2.26 json_database~=0.7 kthread~=0.2 watchdog -pyee +pyee>=8.0.0 combo-lock~=0.2 rich-click~=1.7 rich~=13.7