Skip to content

Commit dc45bd6

Browse files
authored
fancontrol2: Path argument putChild() must be bytes (#1069)
1 parent 6719783 commit dc45bd6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

fancontrol2/src/plugin.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1281,9 +1281,9 @@ def autostart(reason, **kwargs):
12811281
from twisted.web import static
12821282
root = static.File("/usr/lib/enigma2/python/Plugins/Extensions/FanControl2/data")
12831283
# root = FC2web()
1284-
root.putChild("", FC2web())
1285-
root.putChild("log", FC2webLog())
1286-
root.putChild("chart", FC2webChart())
1284+
root.putChild(b"", FC2web())
1285+
root.putChild(b"log", FC2webLog())
1286+
root.putChild(b"chart", FC2webChart())
12871287
if os.path.exists("/usr/lib/enigma2/python/Plugins/Extensions/WebInterface/web/external.xml"):
12881288
try:
12891289
addExternalChild(("fancontrol", root, "Fan Control 2", Version, True))

0 commit comments

Comments
 (0)