Avahi wrapper moved to utils

This commit is contained in:
David Eisner 2013-11-05 10:37:54 +00:00
parent 483ced3c16
commit 6c75b0d96f
2 changed files with 1 additions and 1 deletions

View File

@ -47,7 +47,7 @@ class MpdFrontend(pykka.ThreadingActor, CoreListener):
lo = re.search('(?<![.\d])(127|0)[.]', self.hostname)
hostname = "" if lo else self.hostname
from .zeroconf import Zeroconf
from mopidy.utils.zeroconf import Zeroconf
self.service = Zeroconf(
stype="_mpd._tcp",
name=name, port=self.port, host=hostname)