mirror of
https://github.com/lumapu/ahoy.git
synced 2025-07-29 22:27:13 +02:00
RPI: remove unused function and import
This commit is contained in:
parent
0089d2817e
commit
0df4f38dac
1 changed files with 0 additions and 11 deletions
|
@ -9,7 +9,6 @@ import struct
|
||||||
import time
|
import time
|
||||||
import re
|
import re
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
import json
|
|
||||||
import crcmod
|
import crcmod
|
||||||
from RF24 import RF24, RF24_PA_MIN, RF24_PA_LOW, RF24_PA_HIGH, RF24_PA_MAX, RF24_250KBPS, RF24_CRC_DISABLED, RF24_CRC_8, RF24_CRC_16
|
from RF24 import RF24, RF24_PA_MIN, RF24_PA_LOW, RF24_PA_HIGH, RF24_PA_MAX, RF24_250KBPS, RF24_CRC_DISABLED, RF24_CRC_8, RF24_CRC_16
|
||||||
from .decoders import *
|
from .decoders import *
|
||||||
|
@ -51,16 +50,6 @@ def ser_to_esb_addr(inverter_ser):
|
||||||
air_order = ser_to_hm_addr(inverter_ser)[::-1] + b'\x01'
|
air_order = ser_to_hm_addr(inverter_ser)[::-1] + b'\x01'
|
||||||
return air_order[::-1]
|
return air_order[::-1]
|
||||||
|
|
||||||
def print_addr(inverter_ser):
|
|
||||||
"""
|
|
||||||
Debug print addresses
|
|
||||||
|
|
||||||
:param str inverter_ser: inverter serial
|
|
||||||
"""
|
|
||||||
print(f"ser# {inverter_ser} ", end='')
|
|
||||||
print(f" -> HM {' '.join([f'{byte:02x}' for byte in ser_to_hm_addr(inverter_ser)])}", end='')
|
|
||||||
print(f" -> ESB {' '.join([f'{byte:02x}' for byte in ser_to_esb_addr(inverter_ser)])}")
|
|
||||||
|
|
||||||
class ResponseDecoderFactory:
|
class ResponseDecoderFactory:
|
||||||
"""
|
"""
|
||||||
Prepare payload decoder
|
Prepare payload decoder
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue