From 71932b5a13e21aab2af9ce30a9d35e71e7f9971e Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:33:40 +0000 Subject: [PATCH 1/2] [pre-commit.ci] pre-commit autoupdate MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit updates: - [github.com/asottile/pyupgrade: v3.15.0 → v3.15.1](https://github.com/asottile/pyupgrade/compare/v3.15.0...v3.15.1) - [github.com/psf/black-pre-commit-mirror: 23.11.0 → 24.2.0](https://github.com/psf/black-pre-commit-mirror/compare/23.11.0...24.2.0) - [github.com/PyCQA/flake8: 6.1.0 → 7.0.0](https://github.com/PyCQA/flake8/compare/6.1.0...7.0.0) - [github.com/PyCQA/bandit: 1.7.5 → 1.7.7](https://github.com/PyCQA/bandit/compare/1.7.5...1.7.7) - [github.com/PyCQA/isort: 5.12.0 → 5.13.2](https://github.com/PyCQA/isort/compare/5.12.0...5.13.2) - [github.com/pre-commit/mirrors-prettier: v3.1.0 → v4.0.0-alpha.8](https://github.com/pre-commit/mirrors-prettier/compare/v3.1.0...v4.0.0-alpha.8) --- .pre-commit-config.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 304623a..33e812e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,11 +1,11 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v3.15.0 + rev: v3.15.1 hooks: - id: pyupgrade args: [--py38-plus] - repo: https://github.com/psf/black-pre-commit-mirror - rev: 23.11.0 + rev: 24.2.0 hooks: - id: black args: @@ -18,7 +18,7 @@ repos: args: - --quiet-level=2 - repo: https://github.com/PyCQA/flake8 - rev: 6.1.0 + rev: 7.0.0 hooks: - id: flake8 additional_dependencies: @@ -30,7 +30,7 @@ repos: - flake8-noqa - mccabe - repo: https://github.com/PyCQA/bandit - rev: 1.7.5 + rev: 1.7.7 hooks: - id: bandit args: @@ -40,7 +40,7 @@ repos: additional_dependencies: ["bandit[toml]"] files: ^.*/.+\.py$ - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort stages: [manual] @@ -61,7 +61,7 @@ repos: - id: python-no-eval - id: python-no-log-warn - repo: https://github.com/pre-commit/mirrors-prettier - rev: v3.1.0 + rev: v4.0.0-alpha.8 hooks: - id: prettier - repo: https://github.com/cdce8p/python-typing-update From b07311b76d96483bf8508ae86e821e3e76fa3b6f Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 20 Feb 2024 00:33:55 +0000 Subject: [PATCH 2/2] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- tests/module_status_test.py | 1 + tests/thermostat_operating_mode_test.py | 1 + velbusaio/channels.py | 1 + velbusaio/command_registry.py | 1 + velbusaio/const.py | 1 + velbusaio/controller.py | 1 + velbusaio/handler.py | 1 + velbusaio/helpers.py | 1 + velbusaio/message.py | 1 + velbusaio/messages/__init__.py | 1 + velbusaio/messages/blind_status.py | 1 + velbusaio/messages/bus_active.py | 1 + velbusaio/messages/bus_error_counter_status.py | 1 + velbusaio/messages/bus_error_counter_status_request.py | 1 + velbusaio/messages/bus_off.py | 1 + velbusaio/messages/channel_name_part1.py | 1 + velbusaio/messages/channel_name_part2.py | 1 + velbusaio/messages/channel_name_part3.py | 1 + velbusaio/messages/channel_name_request.py | 1 + velbusaio/messages/clear_led.py | 1 + velbusaio/messages/counter_status.py | 1 + velbusaio/messages/counter_status_request.py | 1 + velbusaio/messages/cover_down.py | 1 + velbusaio/messages/cover_off.py | 1 + velbusaio/messages/cover_position.py | 1 + velbusaio/messages/cover_up.py | 1 + velbusaio/messages/dali_device_settings.py | 1 + velbusaio/messages/dali_device_settings_request.py | 1 + velbusaio/messages/dali_dim_value_status.py | 1 + velbusaio/messages/dimmer_channel_status.py | 1 + velbusaio/messages/dimmer_status.py | 1 + velbusaio/messages/edge_set_custom_color.py | 1 + velbusaio/messages/fast_blinking_led.py | 1 + velbusaio/messages/forced_off.py | 1 + velbusaio/messages/forced_on.py | 1 + velbusaio/messages/interface_status_request.py | 1 + velbusaio/messages/ir_receiver_status.py | 1 + velbusaio/messages/kwh_status.py | 1 + velbusaio/messages/light_value_request.py | 1 + velbusaio/messages/memo_text.py | 1 + velbusaio/messages/memory_data.py | 1 + velbusaio/messages/memory_data_block.py | 1 + velbusaio/messages/memory_dump_request.py | 1 + velbusaio/messages/module_status.py | 1 + velbusaio/messages/module_status_request.py | 1 + velbusaio/messages/module_subtype.py | 1 + velbusaio/messages/module_type.py | 1 + velbusaio/messages/module_type_request.py | 1 + velbusaio/messages/push_button_status.py | 1 + velbusaio/messages/raw.py | 1 + velbusaio/messages/read_data_block_from_memory.py | 1 + velbusaio/messages/read_data_from_memory.py | 1 + velbusaio/messages/realtime_clock_status_request.py | 1 + velbusaio/messages/receive_buffer_full.py | 1 + velbusaio/messages/receive_ready.py | 1 + velbusaio/messages/relay_status.py | 1 + velbusaio/messages/restore_dimmer.py | 1 + velbusaio/messages/select_program.py | 1 + velbusaio/messages/sensor_settings_request.py | 1 + velbusaio/messages/sensor_temp_request.py | 1 + velbusaio/messages/sensor_temperature.py | 1 + velbusaio/messages/set_date.py | 1 + velbusaio/messages/set_daylight_saving.py | 1 + velbusaio/messages/set_dimmer.py | 1 + velbusaio/messages/set_led.py | 1 + velbusaio/messages/set_realtime_clock.py | 1 + velbusaio/messages/set_temperature.py | 1 + velbusaio/messages/slider_status.py | 1 + velbusaio/messages/slow_blinking_led.py | 1 + velbusaio/messages/start_relay_blinking_timer.py | 1 + velbusaio/messages/start_relay_timer.py | 1 + velbusaio/messages/switch_relay_off.py | 1 + velbusaio/messages/switch_relay_on.py | 1 + velbusaio/messages/switch_to_comfort.py | 1 + velbusaio/messages/switch_to_day.py | 1 + velbusaio/messages/switch_to_night.py | 1 + velbusaio/messages/switch_to_safe.py | 1 + velbusaio/messages/temp_sensor_settings_part1.py | 1 + velbusaio/messages/temp_sensor_settings_part2.py | 1 + velbusaio/messages/temp_sensor_settings_part3.py | 1 + velbusaio/messages/temp_sensor_settings_part4.py | 1 + velbusaio/messages/temp_sensor_settings_request.py | 1 + velbusaio/messages/temp_sensor_status.py | 1 + velbusaio/messages/temp_set_cooling.py | 1 + velbusaio/messages/temp_set_heating.py | 1 + velbusaio/messages/update_led_status.py | 1 + velbusaio/messages/very_fast_blinking_led.py | 1 + velbusaio/messages/write_data_to_memory.py | 1 + velbusaio/messages/write_memory_block.py | 1 + velbusaio/messages/write_module_address_and_serial_number.py | 1 + velbusaio/module.py | 1 + 91 files changed, 91 insertions(+) diff --git a/tests/module_status_test.py b/tests/module_status_test.py index 10776fb..6f3d874 100644 --- a/tests/module_status_test.py +++ b/tests/module_status_test.py @@ -2,6 +2,7 @@ This test checks if with an incoming module_status message the selected program is correctly stored into the module. """ + import pathlib import pytest diff --git a/tests/thermostat_operating_mode_test.py b/tests/thermostat_operating_mode_test.py index 41d30d3..71552f8 100644 --- a/tests/thermostat_operating_mode_test.py +++ b/tests/thermostat_operating_mode_test.py @@ -2,6 +2,7 @@ This test checks if with an incoming temp_sensor_status message the thermostat operating mode and sleep_timer values are correctly stored into the module's temperature channel. """ + import logging import pathlib diff --git a/velbusaio/channels.py b/velbusaio/channels.py index 0129f37..df7b5ff 100644 --- a/velbusaio/channels.py +++ b/velbusaio/channels.py @@ -1,6 +1,7 @@ """ author: Maikel Punie """ + from __future__ import annotations import asyncio diff --git a/velbusaio/command_registry.py b/velbusaio/command_registry.py index 62a16c1..f00a13d 100644 --- a/velbusaio/command_registry.py +++ b/velbusaio/command_registry.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie and Thomas Delaet """ + from __future__ import annotations MODULE_DIRECTORY = { diff --git a/velbusaio/const.py b/velbusaio/const.py index a1e501d..a823b3b 100644 --- a/velbusaio/const.py +++ b/velbusaio/const.py @@ -1,6 +1,7 @@ """ Author: Maikel Punie """ + from __future__ import annotations from typing import Final diff --git a/velbusaio/controller.py b/velbusaio/controller.py index 82d00b4..9b8705f 100644 --- a/velbusaio/controller.py +++ b/velbusaio/controller.py @@ -1,6 +1,7 @@ """ Main interface for the velbusaio lib """ + from __future__ import annotations import asyncio diff --git a/velbusaio/handler.py b/velbusaio/handler.py index 22e094d..25929c4 100644 --- a/velbusaio/handler.py +++ b/velbusaio/handler.py @@ -2,6 +2,7 @@ Velbus packet handler :Author maikel punie """ + from __future__ import annotations import asyncio diff --git a/velbusaio/helpers.py b/velbusaio/helpers.py index e0e1103..a2ee1b2 100644 --- a/velbusaio/helpers.py +++ b/velbusaio/helpers.py @@ -1,6 +1,7 @@ """ Helper functions """ + from __future__ import annotations import os diff --git a/velbusaio/message.py b/velbusaio/message.py index afac637..de186d0 100644 --- a/velbusaio/message.py +++ b/velbusaio/message.py @@ -1,6 +1,7 @@ """ The velbus abstract message class """ + from __future__ import annotations import json diff --git a/velbusaio/messages/__init__.py b/velbusaio/messages/__init__.py index ed2099d..d87b310 100644 --- a/velbusaio/messages/__init__.py +++ b/velbusaio/messages/__init__.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.messages.blind_status import BlindStatusMessage, BlindStatusNgMessage diff --git a/velbusaio/messages/blind_status.py b/velbusaio/messages/blind_status.py index 619bdc9..c99d1b5 100644 --- a/velbusaio/messages/blind_status.py +++ b/velbusaio/messages/blind_status.py @@ -1,6 +1,7 @@ """ :author: Tom Dupré """ + from __future__ import annotations import json diff --git a/velbusaio/messages/bus_active.py b/velbusaio/messages/bus_active.py index f08789e..d3298fa 100644 --- a/velbusaio/messages/bus_active.py +++ b/velbusaio/messages/bus_active.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/bus_error_counter_status.py b/velbusaio/messages/bus_error_counter_status.py index b90fb0f..cd4faa6 100644 --- a/velbusaio/messages/bus_error_counter_status.py +++ b/velbusaio/messages/bus_error_counter_status.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/bus_error_counter_status_request.py b/velbusaio/messages/bus_error_counter_status_request.py index 8b854f9..1aebe06 100644 --- a/velbusaio/messages/bus_error_counter_status_request.py +++ b/velbusaio/messages/bus_error_counter_status_request.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/bus_off.py b/velbusaio/messages/bus_off.py index ab11d5b..1d12fe6 100644 --- a/velbusaio/messages/bus_off.py +++ b/velbusaio/messages/bus_off.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/channel_name_part1.py b/velbusaio/messages/channel_name_part1.py index 2d85fa6..ca6f743 100644 --- a/velbusaio/messages/channel_name_part1.py +++ b/velbusaio/messages/channel_name_part1.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/channel_name_part2.py b/velbusaio/messages/channel_name_part2.py index 1f1054e..b79d836 100644 --- a/velbusaio/messages/channel_name_part2.py +++ b/velbusaio/messages/channel_name_part2.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/channel_name_part3.py b/velbusaio/messages/channel_name_part3.py index 93d1fb2..6834c22 100644 --- a/velbusaio/messages/channel_name_part3.py +++ b/velbusaio/messages/channel_name_part3.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/channel_name_request.py b/velbusaio/messages/channel_name_request.py index 90e1213..6eb7d68 100644 --- a/velbusaio/messages/channel_name_request.py +++ b/velbusaio/messages/channel_name_request.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet and Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/clear_led.py b/velbusaio/messages/clear_led.py index 3199f11..eb857b7 100644 --- a/velbusaio/messages/clear_led.py +++ b/velbusaio/messages/clear_led.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/counter_status.py b/velbusaio/messages/counter_status.py index 2094125..150dad8 100644 --- a/velbusaio/messages/counter_status.py +++ b/velbusaio/messages/counter_status.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/counter_status_request.py b/velbusaio/messages/counter_status_request.py index 3a549c0..6c13049 100644 --- a/velbusaio/messages/counter_status_request.py +++ b/velbusaio/messages/counter_status_request.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/cover_down.py b/velbusaio/messages/cover_down.py index e0603f8..e68c0b4 100644 --- a/velbusaio/messages/cover_down.py +++ b/velbusaio/messages/cover_down.py @@ -1,6 +1,7 @@ """ :author: Tom Dupré """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/cover_off.py b/velbusaio/messages/cover_off.py index c90792b..3a47338 100644 --- a/velbusaio/messages/cover_off.py +++ b/velbusaio/messages/cover_off.py @@ -1,6 +1,7 @@ """ :author: Tom Dupré """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/cover_position.py b/velbusaio/messages/cover_position.py index b1c54f5..a8e1fab 100644 --- a/velbusaio/messages/cover_position.py +++ b/velbusaio/messages/cover_position.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/cover_up.py b/velbusaio/messages/cover_up.py index 096f669..dc45205 100644 --- a/velbusaio/messages/cover_up.py +++ b/velbusaio/messages/cover_up.py @@ -1,6 +1,7 @@ """ :author: Tom Dupré """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/dali_device_settings.py b/velbusaio/messages/dali_device_settings.py index cc1a2db..8b19f05 100644 --- a/velbusaio/messages/dali_device_settings.py +++ b/velbusaio/messages/dali_device_settings.py @@ -1,6 +1,7 @@ """ :author: Niels Laukens """ + from __future__ import annotations import dataclasses diff --git a/velbusaio/messages/dali_device_settings_request.py b/velbusaio/messages/dali_device_settings_request.py index 9c33080..23abfd3 100644 --- a/velbusaio/messages/dali_device_settings_request.py +++ b/velbusaio/messages/dali_device_settings_request.py @@ -1,6 +1,7 @@ """ :author: Niels Laukens """ + from __future__ import annotations import enum diff --git a/velbusaio/messages/dali_dim_value_status.py b/velbusaio/messages/dali_dim_value_status.py index 56931cc..ea13a17 100644 --- a/velbusaio/messages/dali_dim_value_status.py +++ b/velbusaio/messages/dali_dim_value_status.py @@ -1,6 +1,7 @@ """ :author: Niels Laukens """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/dimmer_channel_status.py b/velbusaio/messages/dimmer_channel_status.py index dce3078..36d472d 100644 --- a/velbusaio/messages/dimmer_channel_status.py +++ b/velbusaio/messages/dimmer_channel_status.py @@ -1,6 +1,7 @@ """ :author: Frank van Breugel """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/dimmer_status.py b/velbusaio/messages/dimmer_status.py index a4ddebe..0108a1e 100644 --- a/velbusaio/messages/dimmer_status.py +++ b/velbusaio/messages/dimmer_status.py @@ -1,6 +1,7 @@ """ :author: Frank van Breugel """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/edge_set_custom_color.py b/velbusaio/messages/edge_set_custom_color.py index 88f0888..54983e8 100644 --- a/velbusaio/messages/edge_set_custom_color.py +++ b/velbusaio/messages/edge_set_custom_color.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/fast_blinking_led.py b/velbusaio/messages/fast_blinking_led.py index af248be..a49385e 100644 --- a/velbusaio/messages/fast_blinking_led.py +++ b/velbusaio/messages/fast_blinking_led.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/forced_off.py b/velbusaio/messages/forced_off.py index 790a596..8965c2e 100644 --- a/velbusaio/messages/forced_off.py +++ b/velbusaio/messages/forced_off.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/forced_on.py b/velbusaio/messages/forced_on.py index 041027b..3a24e29 100644 --- a/velbusaio/messages/forced_on.py +++ b/velbusaio/messages/forced_on.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/interface_status_request.py b/velbusaio/messages/interface_status_request.py index 402e0d3..c618bff 100644 --- a/velbusaio/messages/interface_status_request.py +++ b/velbusaio/messages/interface_status_request.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/ir_receiver_status.py b/velbusaio/messages/ir_receiver_status.py index d362168..cc4bd99 100644 --- a/velbusaio/messages/ir_receiver_status.py +++ b/velbusaio/messages/ir_receiver_status.py @@ -1,6 +1,7 @@ """ :author: David Danssaert """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/kwh_status.py b/velbusaio/messages/kwh_status.py index b12fae1..2132fca 100644 --- a/velbusaio/messages/kwh_status.py +++ b/velbusaio/messages/kwh_status.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/light_value_request.py b/velbusaio/messages/light_value_request.py index 82cceda..10ae34c 100644 --- a/velbusaio/messages/light_value_request.py +++ b/velbusaio/messages/light_value_request.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/memo_text.py b/velbusaio/messages/memo_text.py index 166061d..d1973a1 100644 --- a/velbusaio/messages/memo_text.py +++ b/velbusaio/messages/memo_text.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/memory_data.py b/velbusaio/messages/memory_data.py index c5efdfb..c15f5e3 100644 --- a/velbusaio/messages/memory_data.py +++ b/velbusaio/messages/memory_data.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/memory_data_block.py b/velbusaio/messages/memory_data_block.py index fb6ed34..26ca760 100644 --- a/velbusaio/messages/memory_data_block.py +++ b/velbusaio/messages/memory_data_block.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/memory_dump_request.py b/velbusaio/messages/memory_dump_request.py index 0884c75..86e8c4f 100644 --- a/velbusaio/messages/memory_dump_request.py +++ b/velbusaio/messages/memory_dump_request.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/module_status.py b/velbusaio/messages/module_status.py index cf61566..b322695 100644 --- a/velbusaio/messages/module_status.py +++ b/velbusaio/messages/module_status.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/module_status_request.py b/velbusaio/messages/module_status_request.py index ae5b053..a610466 100644 --- a/velbusaio/messages/module_status_request.py +++ b/velbusaio/messages/module_status_request.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/module_subtype.py b/velbusaio/messages/module_subtype.py index 90f80e8..0595df9 100644 --- a/velbusaio/messages/module_subtype.py +++ b/velbusaio/messages/module_subtype.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/module_type.py b/velbusaio/messages/module_type.py index 1a06af5..cac3fa0 100644 --- a/velbusaio/messages/module_type.py +++ b/velbusaio/messages/module_type.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/module_type_request.py b/velbusaio/messages/module_type_request.py index e964712..304a924 100644 --- a/velbusaio/messages/module_type_request.py +++ b/velbusaio/messages/module_type_request.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.message import Message diff --git a/velbusaio/messages/push_button_status.py b/velbusaio/messages/push_button_status.py index a622329..521e531 100644 --- a/velbusaio/messages/push_button_status.py +++ b/velbusaio/messages/push_button_status.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/raw.py b/velbusaio/messages/raw.py index 80069fe..b650b2b 100644 --- a/velbusaio/messages/raw.py +++ b/velbusaio/messages/raw.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/read_data_block_from_memory.py b/velbusaio/messages/read_data_block_from_memory.py index 6a00e9c..313ddeb 100644 --- a/velbusaio/messages/read_data_block_from_memory.py +++ b/velbusaio/messages/read_data_block_from_memory.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/read_data_from_memory.py b/velbusaio/messages/read_data_from_memory.py index 0198ead..9193e20 100644 --- a/velbusaio/messages/read_data_from_memory.py +++ b/velbusaio/messages/read_data_from_memory.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/realtime_clock_status_request.py b/velbusaio/messages/realtime_clock_status_request.py index 2f84cd8..4f2b8b0 100644 --- a/velbusaio/messages/realtime_clock_status_request.py +++ b/velbusaio/messages/realtime_clock_status_request.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/receive_buffer_full.py b/velbusaio/messages/receive_buffer_full.py index 4215fd5..3dfed8c 100644 --- a/velbusaio/messages/receive_buffer_full.py +++ b/velbusaio/messages/receive_buffer_full.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/receive_ready.py b/velbusaio/messages/receive_ready.py index 83f317d..1d13184 100644 --- a/velbusaio/messages/receive_ready.py +++ b/velbusaio/messages/receive_ready.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/relay_status.py b/velbusaio/messages/relay_status.py index 662fe77..083af40 100644 --- a/velbusaio/messages/relay_status.py +++ b/velbusaio/messages/relay_status.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/restore_dimmer.py b/velbusaio/messages/restore_dimmer.py index acc49f4..d2c27f0 100644 --- a/velbusaio/messages/restore_dimmer.py +++ b/velbusaio/messages/restore_dimmer.py @@ -1,6 +1,7 @@ """ :author: Frank van Breugel """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/select_program.py b/velbusaio/messages/select_program.py index 4a2ea14..43dbcfa 100644 --- a/velbusaio/messages/select_program.py +++ b/velbusaio/messages/select_program.py @@ -1,6 +1,7 @@ """ :author: Danny De Gaspari """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/sensor_settings_request.py b/velbusaio/messages/sensor_settings_request.py index 92a0778..5c810fc 100644 --- a/velbusaio/messages/sensor_settings_request.py +++ b/velbusaio/messages/sensor_settings_request.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/sensor_temp_request.py b/velbusaio/messages/sensor_temp_request.py index 3f93576..626c36f 100644 --- a/velbusaio/messages/sensor_temp_request.py +++ b/velbusaio/messages/sensor_temp_request.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/sensor_temperature.py b/velbusaio/messages/sensor_temperature.py index ddf23a6..c8a3001 100644 --- a/velbusaio/messages/sensor_temperature.py +++ b/velbusaio/messages/sensor_temperature.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/set_date.py b/velbusaio/messages/set_date.py index 1a586bd..b495260 100644 --- a/velbusaio/messages/set_date.py +++ b/velbusaio/messages/set_date.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations import time diff --git a/velbusaio/messages/set_daylight_saving.py b/velbusaio/messages/set_daylight_saving.py index 40c5ffb..0d5dfbc 100644 --- a/velbusaio/messages/set_daylight_saving.py +++ b/velbusaio/messages/set_daylight_saving.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations import time diff --git a/velbusaio/messages/set_dimmer.py b/velbusaio/messages/set_dimmer.py index 76c8dc6..c6f76bc 100644 --- a/velbusaio/messages/set_dimmer.py +++ b/velbusaio/messages/set_dimmer.py @@ -1,6 +1,7 @@ """ :author: Frank van Breugel """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/set_led.py b/velbusaio/messages/set_led.py index ee44527..85bb7b8 100644 --- a/velbusaio/messages/set_led.py +++ b/velbusaio/messages/set_led.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/set_realtime_clock.py b/velbusaio/messages/set_realtime_clock.py index 9505dc3..ff46cb9 100644 --- a/velbusaio/messages/set_realtime_clock.py +++ b/velbusaio/messages/set_realtime_clock.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations import time diff --git a/velbusaio/messages/set_temperature.py b/velbusaio/messages/set_temperature.py index 3a3104f..5d5c754 100644 --- a/velbusaio/messages/set_temperature.py +++ b/velbusaio/messages/set_temperature.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/slider_status.py b/velbusaio/messages/slider_status.py index de3d417..d348433 100644 --- a/velbusaio/messages/slider_status.py +++ b/velbusaio/messages/slider_status.py @@ -1,6 +1,7 @@ """ :author: Frank van Breugel """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/slow_blinking_led.py b/velbusaio/messages/slow_blinking_led.py index 55ff41f..f2a9302 100644 --- a/velbusaio/messages/slow_blinking_led.py +++ b/velbusaio/messages/slow_blinking_led.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/start_relay_blinking_timer.py b/velbusaio/messages/start_relay_blinking_timer.py index 3b73a53..78f772e 100644 --- a/velbusaio/messages/start_relay_blinking_timer.py +++ b/velbusaio/messages/start_relay_blinking_timer.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/start_relay_timer.py b/velbusaio/messages/start_relay_timer.py index bd174fe..ca52744 100644 --- a/velbusaio/messages/start_relay_timer.py +++ b/velbusaio/messages/start_relay_timer.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations import struct diff --git a/velbusaio/messages/switch_relay_off.py b/velbusaio/messages/switch_relay_off.py index 439e3f2..1067d48 100644 --- a/velbusaio/messages/switch_relay_off.py +++ b/velbusaio/messages/switch_relay_off.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/switch_relay_on.py b/velbusaio/messages/switch_relay_on.py index dd87b58..ee7e98c 100644 --- a/velbusaio/messages/switch_relay_on.py +++ b/velbusaio/messages/switch_relay_on.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/switch_to_comfort.py b/velbusaio/messages/switch_to_comfort.py index 5c77943..d6af96f 100644 --- a/velbusaio/messages/switch_to_comfort.py +++ b/velbusaio/messages/switch_to_comfort.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/switch_to_day.py b/velbusaio/messages/switch_to_day.py index 31ac8b0..fb3117a 100644 --- a/velbusaio/messages/switch_to_day.py +++ b/velbusaio/messages/switch_to_day.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/switch_to_night.py b/velbusaio/messages/switch_to_night.py index fe1ff59..18d5ad7 100644 --- a/velbusaio/messages/switch_to_night.py +++ b/velbusaio/messages/switch_to_night.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/switch_to_safe.py b/velbusaio/messages/switch_to_safe.py index d7966dc..545d514 100644 --- a/velbusaio/messages/switch_to_safe.py +++ b/velbusaio/messages/switch_to_safe.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/temp_sensor_settings_part1.py b/velbusaio/messages/temp_sensor_settings_part1.py index 60958d9..319edca 100644 --- a/velbusaio/messages/temp_sensor_settings_part1.py +++ b/velbusaio/messages/temp_sensor_settings_part1.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/temp_sensor_settings_part2.py b/velbusaio/messages/temp_sensor_settings_part2.py index 63565ed..46c9eac 100644 --- a/velbusaio/messages/temp_sensor_settings_part2.py +++ b/velbusaio/messages/temp_sensor_settings_part2.py @@ -1,6 +1,7 @@ """ :author: Danny De Gaspari """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/temp_sensor_settings_part3.py b/velbusaio/messages/temp_sensor_settings_part3.py index 78161d2..f67ad3f 100644 --- a/velbusaio/messages/temp_sensor_settings_part3.py +++ b/velbusaio/messages/temp_sensor_settings_part3.py @@ -1,6 +1,7 @@ """ :author: Danny De Gaspari """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/temp_sensor_settings_part4.py b/velbusaio/messages/temp_sensor_settings_part4.py index 97a7c1f..05630ec 100644 --- a/velbusaio/messages/temp_sensor_settings_part4.py +++ b/velbusaio/messages/temp_sensor_settings_part4.py @@ -1,6 +1,7 @@ """ :author: Danny De Gaspari """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/temp_sensor_settings_request.py b/velbusaio/messages/temp_sensor_settings_request.py index 35e5ad0..0966d8d 100644 --- a/velbusaio/messages/temp_sensor_settings_request.py +++ b/velbusaio/messages/temp_sensor_settings_request.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/temp_sensor_status.py b/velbusaio/messages/temp_sensor_status.py index db1dcbe..7b6b929 100644 --- a/velbusaio/messages/temp_sensor_status.py +++ b/velbusaio/messages/temp_sensor_status.py @@ -1,6 +1,7 @@ """ :author: Maikel Punie """ + from __future__ import annotations import json diff --git a/velbusaio/messages/temp_set_cooling.py b/velbusaio/messages/temp_set_cooling.py index 50b7a03..377ed8a 100644 --- a/velbusaio/messages/temp_set_cooling.py +++ b/velbusaio/messages/temp_set_cooling.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/temp_set_heating.py b/velbusaio/messages/temp_set_heating.py index c023b35..b3d12d9 100644 --- a/velbusaio/messages/temp_set_heating.py +++ b/velbusaio/messages/temp_set_heating.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/update_led_status.py b/velbusaio/messages/update_led_status.py index 31c0bb8..321409c 100644 --- a/velbusaio/messages/update_led_status.py +++ b/velbusaio/messages/update_led_status.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/very_fast_blinking_led.py b/velbusaio/messages/very_fast_blinking_led.py index 38fc2ec..1363ce9 100644 --- a/velbusaio/messages/very_fast_blinking_led.py +++ b/velbusaio/messages/very_fast_blinking_led.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/write_data_to_memory.py b/velbusaio/messages/write_data_to_memory.py index 2603157..19f70cb 100644 --- a/velbusaio/messages/write_data_to_memory.py +++ b/velbusaio/messages/write_data_to_memory.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/write_memory_block.py b/velbusaio/messages/write_memory_block.py index ebb7f23..5ef74d7 100644 --- a/velbusaio/messages/write_memory_block.py +++ b/velbusaio/messages/write_memory_block.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations from velbusaio.command_registry import register diff --git a/velbusaio/messages/write_module_address_and_serial_number.py b/velbusaio/messages/write_module_address_and_serial_number.py index 414cfbf..3a6e971 100644 --- a/velbusaio/messages/write_module_address_and_serial_number.py +++ b/velbusaio/messages/write_module_address_and_serial_number.py @@ -1,6 +1,7 @@ """ :author: Thomas Delaet """ + from __future__ import annotations import struct diff --git a/velbusaio/module.py b/velbusaio/module.py index 8c94eac..ad11492 100644 --- a/velbusaio/module.py +++ b/velbusaio/module.py @@ -1,6 +1,7 @@ """ This represents a velbus module """ + from __future__ import annotations import logging