From 28b585a54cf65870ce87e3ea4e8c574b5736b87f Mon Sep 17 00:00:00 2001 From: Adam Kadlec Date: Tue, 1 Feb 2022 10:36:16 +0100 Subject: [PATCH] Fixing packet parsing --- fastybird_fb_bus_connector/__init__.py | 2 +- fastybird_fb_bus_connector/api/v1parser.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/fastybird_fb_bus_connector/__init__.py b/fastybird_fb_bus_connector/__init__.py index 92b096c..b3a4519 100644 --- a/fastybird_fb_bus_connector/__init__.py +++ b/fastybird_fb_bus_connector/__init__.py @@ -20,7 +20,7 @@ from .bootstrap import create_connector -__version__ = "0.8.0" +__version__ = "0.9.0" __all__ = ["connector", "bootstrap"] diff --git a/fastybird_fb_bus_connector/api/v1parser.py b/fastybird_fb_bus_connector/api/v1parser.py index 4b901af..6b64e41 100644 --- a/fastybird_fb_bus_connector/api/v1parser.py +++ b/fastybird_fb_bus_connector/api/v1parser.py @@ -674,6 +674,8 @@ def __parse_single_register_value( DataType.INT, DataType.FLOAT, DataType.BOOLEAN, + DataType.BUTTON, + DataType.SWITCH, ): return register_type, ( register_address, @@ -767,6 +769,8 @@ def __parse_multiple_registers_values( DataType.INT, DataType.FLOAT, DataType.BOOLEAN, + DataType.BUTTON, + DataType.SWITCH, ): parsed_value = list(map(int, payload[position_byte:]))