Fix alarm clock detection

Fix alarm clock detection broken in
411a3781fd
This commit is contained in:
Davis Mosenkovs 2017-01-15 02:37:41 +02:00
parent 37b267ded1
commit d8d040adf3
2 changed files with 2 additions and 1 deletions

View File

@ -113,6 +113,7 @@ v2.4.0 (UNRELEASED)
**Fixes** **Fixes**
- Fixed `Alarm Clock <https://pypi.python.org/pypi/Mopidy-AlarmClock/>`_ detection.
- Only show 'Show Album' or 'Show Artist' options in popup menus if URI's for those resources are available. - Only show 'Show Album' or 'Show Artist' options in popup menus if URI's for those resources are available.
(Fixes: `#213 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/213>`_). (Fixes: `#213 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/213>`_).
- Now shows correct hostname information in loader popup. (Fixes: `#209 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/209>`_). - Now shows correct hostname information in loader popup. (Fixes: `#209 <https://github.com/pimusicbox/mopidy-musicbox-webclient/issues/209>`_).

View File

@ -40,7 +40,7 @@ class Webclient(object):
return ws_url return ws_url
def has_alarm_clock(self): def has_alarm_clock(self):
return self.ext_config.get('alarmclock', {}).get('enabled', False) return self.config.get('alarmclock', {}).get('enabled', False)
def is_music_box(self): def is_music_box(self):
return self.ext_config.get('musicbox', False) return self.ext_config.get('musicbox', False)