From dfc48523a100cccc5b86c5196db376d7fcec0bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20Nenz=C3=A9n?= Date: Fri, 6 Oct 2023 17:24:49 +0200 Subject: [PATCH] Fix --- pyflichub/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyflichub/client.py b/pyflichub/client.py index 71093a2..0b6f881 100644 --- a/pyflichub/client.py +++ b/pyflichub/client.py @@ -163,7 +163,7 @@ def _handle_command(self, cmd: Command): def _handle_event(self, event: Event): button = None - if event.event == 'button' or event.event == 'buttonConnected': + if event.event == 'button': button = self._get_button(event.button) _LOGGER.debug(f"Button {button.name} was {event.action}")