From 9ed4bcfce2b35b23fcfa4e2062e7d70e60dd549d Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 21 Oct 2024 19:43:54 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- velbusaio/handler.py | 2 +- velbusaio/module_spec/2E.json | 1 - velbusaio/module_spec/broadcast.json | 130 +++++++++++++-------------- 3 files changed, 66 insertions(+), 67 deletions(-) diff --git a/velbusaio/handler.py b/velbusaio/handler.py index 9a545cc..1dd828e 100644 --- a/velbusaio/handler.py +++ b/velbusaio/handler.py @@ -228,7 +228,7 @@ def _handle_module_type(self, msg: ModuleTypeMessage | ModuleType2Message) -> No if msg is not None: module = self._velbus.get_module(msg.address) if module is None: - #data = keys_exists(self.pdata, "ModuleTypes", h2(msg.module_type)) + # data = keys_exists(self.pdata, "ModuleTypes", h2(msg.module_type)) if not data: self._log.warning(f"Module not recognized: {msg.module_type}") return diff --git a/velbusaio/module_spec/2E.json b/velbusaio/module_spec/2E.json index 4b3bc82..def9c7e 100644 --- a/velbusaio/module_spec/2E.json +++ b/velbusaio/module_spec/2E.json @@ -1,4 +1,3 @@ - { "Channels": { "01": { diff --git a/velbusaio/module_spec/broadcast.json b/velbusaio/module_spec/broadcast.json index 3fa24ad..3d9cfc0 100644 --- a/velbusaio/module_spec/broadcast.json +++ b/velbusaio/module_spec/broadcast.json @@ -1,67 +1,67 @@ { - "09": { - "Info": "Transmit Bus Off message", - "Name": "COMMAND_BUS_OFF", - "Prio": "High" - }, - "0B": { - "Info": "Transmit Buffer Full message", - "Name": "COMMAND_RX_BUFFER_FULL_STATUS", - "Prio": "High" - }, - "0C": { - "Info": "Transmits Buffer Ready message", - "Name": "COMMAND_RX_BUFFER_READY_STATUS", - "Prio": "High" - }, - "0E": { - "Info": "Interface status request", - "Name": "CMD_INTERFACE_STATUS_REQUEST", - "Prio": "High" - }, - "AB": { - "Info": "Power Up message;Power up message received;Power up message received ;Transmits power up message;Transmits power up message ", - "Name": "COMMAND_POWER_UP", - "Prio": "Low" - }, - "AE": { - "Info": "Enable/disable global sunrise/sunset related actions command received", - "Name": "COMMAND_ENA_DIS_SUNRISE_SUNSET", - "Prio": "Low" - }, - "AF": { - "Info": "Set daylight savings command received;Transmits the daylight savings status", - "Name": "COMMAND_DAYLIGHT_SAVING_STATUS;COMMAND_SET_DAYLIGHT_SAVING", - "Prio": "Low" - }, - "B7": { - "Info": "Set date command received;Transmits the date status", - "Name": "COMMAND_DATE_STATUS;COMMAND_SET_REALTIME_DATE", - "Prio": "Low" - }, - "BC": { - "Info": "Program availability command received;Transmits set sensor program availability", - "Name": "COMMAND_SENSOR_PROGRAM_AVAILABILITY", - "Prio": "Low" - }, - "BF": { - "Info": "Set sensor program location command received;Transmits set sensor program location", - "Name": "COMMAND_SET_SENSOR_PROGRAM_LOCATION", - "Prio": "Low" - }, - "C3": { - "Info": "Set global clock alarm command received;Transmit set global clock alarm;Transmits set global clock alarm", - "Name": "COMMAND_SET_ALARM_CLOCK", - "Prio": "Low" - }, - "D7": { - "Info": "Real time clock status request command received;Real time clock status request received (response after minute rollover);Transmits real time clock status request", - "Name": "COMMAND_REALTIME_CLOCK_STATUS_REQUEST", - "Prio": "Low" - }, - "D8": { - "Info": "Real time clock status received;Set real time clock command received;Transmit Real time clock status;Transmits the real time clock status", - "Name": "COMMAND_REALTIME_CLOCK_STATUS", - "Prio": "Low" - } + "09": { + "Info": "Transmit Bus Off message", + "Name": "COMMAND_BUS_OFF", + "Prio": "High" + }, + "0B": { + "Info": "Transmit Buffer Full message", + "Name": "COMMAND_RX_BUFFER_FULL_STATUS", + "Prio": "High" + }, + "0C": { + "Info": "Transmits Buffer Ready message", + "Name": "COMMAND_RX_BUFFER_READY_STATUS", + "Prio": "High" + }, + "0E": { + "Info": "Interface status request", + "Name": "CMD_INTERFACE_STATUS_REQUEST", + "Prio": "High" + }, + "AB": { + "Info": "Power Up message;Power up message received;Power up message received ;Transmits power up message;Transmits power up message ", + "Name": "COMMAND_POWER_UP", + "Prio": "Low" + }, + "AE": { + "Info": "Enable/disable global sunrise/sunset related actions command received", + "Name": "COMMAND_ENA_DIS_SUNRISE_SUNSET", + "Prio": "Low" + }, + "AF": { + "Info": "Set daylight savings command received;Transmits the daylight savings status", + "Name": "COMMAND_DAYLIGHT_SAVING_STATUS;COMMAND_SET_DAYLIGHT_SAVING", + "Prio": "Low" + }, + "B7": { + "Info": "Set date command received;Transmits the date status", + "Name": "COMMAND_DATE_STATUS;COMMAND_SET_REALTIME_DATE", + "Prio": "Low" + }, + "BC": { + "Info": "Program availability command received;Transmits set sensor program availability", + "Name": "COMMAND_SENSOR_PROGRAM_AVAILABILITY", + "Prio": "Low" + }, + "BF": { + "Info": "Set sensor program location command received;Transmits set sensor program location", + "Name": "COMMAND_SET_SENSOR_PROGRAM_LOCATION", + "Prio": "Low" + }, + "C3": { + "Info": "Set global clock alarm command received;Transmit set global clock alarm;Transmits set global clock alarm", + "Name": "COMMAND_SET_ALARM_CLOCK", + "Prio": "Low" + }, + "D7": { + "Info": "Real time clock status request command received;Real time clock status request received (response after minute rollover);Transmits real time clock status request", + "Name": "COMMAND_REALTIME_CLOCK_STATUS_REQUEST", + "Prio": "Low" + }, + "D8": { + "Info": "Real time clock status received;Set real time clock command received;Transmit Real time clock status;Transmits the real time clock status", + "Name": "COMMAND_REALTIME_CLOCK_STATUS", + "Prio": "Low" + } }