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:]))