REFACTOR: Rename frontend

This commit is contained in:
Dominique Barton 2019-02-20 23:23:02 +01:00
parent b1e4a725a0
commit 64f7e9b27e
2 changed files with 5 additions and 2 deletions

View file

@ -9,6 +9,7 @@ import os
from mopidy import config, ext
from .frontend import PummeluffFrontend
from .web import CardRequestHandler
@ -44,6 +45,8 @@ class Extension(ext.Extension):
'''
Setup the extension.
'''
registry.add('frontend', PummeluffFrontend)
registry.add('http:app', {
'name': self.ext_name,
'factory': app_factory,

View file

@ -57,13 +57,13 @@ class CardReader(Thread):
reader.cleanup()
class Frontend(pykka.ThreadingActor, core.CoreListener):
class PummeluffFrontend(pykka.ThreadingActor, core.CoreListener):
'''
Pummeluff frontend which basically reads cards from the RFID reader.
'''
def __init__(self, config, core):
super(Frontend, self).__init__()
super(PummeluffFrontend, self).__init__()
self.core = core
self.stop_event = Event()
self.card_reader = CardReader(self.stop_event)