baseimage-tutorial-framework/tfw/internals/event_handling/control_event_handler.py
2019-08-26 11:12:13 +02:00

9 lines
263 B
Python

from tfw.internals.networking import Intent
from .event_handler import EventHandler
class ControlEventHandler(EventHandler): # pylint: disable=abstract-method
def _validate_message(self, message):
return message.get('intent') != Intent.EVENT.value