mirror of
https://github.com/d3vyce/teleinfo-exporter.git
synced 2025-04-03 16:53:23 +02:00
fix: lint warning
This commit is contained in:
parent
0160aa6197
commit
e2631e4e3d
@ -155,7 +155,6 @@ def on_disconnect(client, userdata, rc):
|
|||||||
if not client.reconnect():
|
if not client.reconnect():
|
||||||
break
|
break
|
||||||
except ConnectionRefusedError:
|
except ConnectionRefusedError:
|
||||||
pass
|
|
||||||
time.sleep(1)
|
time.sleep(1)
|
||||||
|
|
||||||
|
|
||||||
@ -175,6 +174,7 @@ def verify_password(username, password):
|
|||||||
return username
|
return username
|
||||||
return None
|
return None
|
||||||
|
|
||||||
|
|
||||||
@app.route("/metrics")
|
@app.route("/metrics")
|
||||||
def metrics():
|
def metrics():
|
||||||
return make_wsgi_app()
|
return make_wsgi_app()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user