Skip to content
Snippets Groups Projects
Commit 20ca5810 authored by KERDREUX Jerome's avatar KERDREUX Jerome
Browse files

Fix the new corrected bug

Oups, I did it again !!
parent 7e279ae2
No related branches found
No related tags found
1 merge request!1First try of type hints
...@@ -28,7 +28,6 @@ from typing import Any, Optional ...@@ -28,7 +28,6 @@ from typing import Any, Optional
from . import config, core from . import config, core
from .exceptions import CallbackError, MessageParserError, XAALError from .exceptions import CallbackError, MessageParserError, XAALError
from .network import NetworkConnector from .network import NetworkConnector
from .messages import MessageAction
if typing.TYPE_CHECKING: if typing.TYPE_CHECKING:
from .devices import Device from .devices import Device
...@@ -119,7 +118,7 @@ class Engine(core.EngineMixin): ...@@ -119,7 +118,7 @@ class Engine(core.EngineMixin):
targets = core.filter_msg_for_devices(msg, self.devices) targets = core.filter_msg_for_devices(msg, self.devices)
for target in targets: for target in targets:
if msg.action == MessageAction.IS_ALIVE: if msg.is_request_isalive():
self.send_alive(target) self.send_alive(target)
else: else:
self.handle_action_request(msg, target) self.handle_action_request(msg, target)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment