Skip to content

Commit e81daef

Browse files
committed
Fix spelling
1 parent 1da8e35 commit e81daef

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

lnxlink/consts.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,6 @@
103103
receiver: null
104104
transmitter: null
105105
buttons: []
106-
restfull:
106+
restful:
107107
port: 5000
108108
"""

lnxlink/modules/restfull.py renamed to lnxlink/modules/restful.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Expose sensors as a Restfull API"""
1+
"""Expose sensors as a Restful API"""
22
import json
33
import logging
44
import threading
@@ -14,7 +14,7 @@ class Addon:
1414

1515
def __init__(self, lnxlink):
1616
"""Setup addon"""
17-
self.name = "Restfull"
17+
self.name = "RESTful"
1818
self.lnxlink = lnxlink
1919
self._requirements()
2020

@@ -91,5 +91,5 @@ def post(self, module=None):
9191

9292
def _serve(self, app):
9393
waitress = import_install_package("waitress", ">=3.0.0", "waitress")
94-
port = self.lnxlink.config["settings"].get("restfull", {}).get("port", 5000)
94+
port = self.lnxlink.config["settings"].get("restful", {}).get("port", 5000)
9595
waitress.serve(app, host="0.0.0.0", port=port)

0 commit comments

Comments
 (0)