python icon indicating copy to clipboard operation
python copied to clipboard

Add missing camel to snake conversion

Open lachesis opened this issue 1 year ago • 0 comments

Before this patch:

$ meshtastic --dest '!nodeid' --get external_notification
Connected to radio
Requesting current config from remote node (this can take a while).

ERROR file:stream_interface.py __reader line:191 Error while handling message from radio externalNotification
Traceback (most recent call last):
  File "/home/eswanson/.local/lib/python3.12/site-packages/meshtastic/stream_interface.py", line 189, in __reader
    self._handleFromRadio(self._rxBuf[HEADER_LEN:])
  File "/home/eswanson/.local/lib/python3.12/site-packages/meshtastic/mesh_interface.py", line 1097, in _handleFromRadio
    self._handlePacketFromRadio(fromRadio.packet)
  File "/home/eswanson/.local/lib/python3.12/site-packages/meshtastic/mesh_interface.py", line 1379, in _handlePacketFromRadio
    handler.callback(asDict)
  File "/home/eswanson/.local/lib/python3.12/site-packages/meshtastic/node.py", line 124, in onResponseRequestSettings
    raw_config = getattr(getattr(adminMessage['raw'], oneof), field)
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: externalNotification. Did you mean: 'ExternalNotificationConfig'?
Completed getting preferences

There sure are a lot of :camel: and :snake: in this project.

lachesis avatar Oct 22 '24 02:10 lachesis