diff --git a/.vscode/settings.json b/.vscode/settings.json index f9808e9..1295ee6 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -1,6 +1,3 @@ { - "python.linting.mypyEnabled": true, - "python.formatting.provider": "black", - "editor.formatOnSave": true, - "python.linting.flake8Enabled": true + "editor.formatOnSave": true } diff --git a/misc/render_rrd.py b/misc/render_rrd.py index 2ca196e..769047b 100644 --- a/misc/render_rrd.py +++ b/misc/render_rrd.py @@ -147,7 +147,6 @@ def rrdupdate(file: str, timestamp: int, data: dict): def re_read(): - rrdtool.create( RRDFILE, # "--no-overwrite", diff --git a/misc/test_bleuart.py b/misc/test_bleuart.py index 1f28414..0d074d6 100644 --- a/misc/test_bleuart.py +++ b/misc/test_bleuart.py @@ -4,7 +4,6 @@ from srnemqtt.lib.feasycom_ble import BTLEUart from srnemqtt.protocol import construct_request, write with BTLEUart(MAC, timeout=1) as x: - print(x) write(x, construct_request(0x0E, words=3)) diff --git a/srnemqtt/protocol.py b/srnemqtt/protocol.py index 160da0b..8944ecd 100644 --- a/srnemqtt/protocol.py +++ b/srnemqtt/protocol.py @@ -84,7 +84,6 @@ def discardUntil(fh: RawIOBase, byte: int, timeout=10) -> Optional[int]: discarded = 0 read_byte = expand(fh.read(1)) while read_byte != byte: - if read_byte is not None: if not discarded: log("Discarding", end="")