srv/poe_manager/app.py aktualisiert
This commit is contained in:
@@ -327,7 +327,6 @@ def toggle_device(mac):
|
|||||||
status_text = "deaktiviert" if new_status == 0 else "aktiviert"
|
status_text = "deaktiviert" if new_status == 0 else "aktiviert"
|
||||||
return {"success": True, "msg": f"Gerät {device['name']} wurde {status_text}.", "new_status": new_status}
|
return {"success": True, "msg": f"Gerät {device['name']} wurde {status_text}.", "new_status": new_status}
|
||||||
|
|
||||||
|
|
||||||
@app.route('/switches', methods=['GET', 'POST'])
|
@app.route('/switches', methods=['GET', 'POST'])
|
||||||
@login_required
|
@login_required
|
||||||
def switches():
|
def switches():
|
||||||
|
|||||||
Reference in New Issue
Block a user