Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 21, 2024
1 parent 97177cb commit 9ed4bcf
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 67 deletions.
2 changes: 1 addition & 1 deletion velbusaio/handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion velbusaio/module_spec/2E.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

{
"Channels": {
"01": {
Expand Down
130 changes: 65 additions & 65 deletions velbusaio/module_spec/broadcast.json
Original file line number Diff line number Diff line change
@@ -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"
}
}

0 comments on commit 9ed4bcf

Please sign in to comment.