From d8d040adf30b6f870133c628ec338fc1eb914bea Mon Sep 17 00:00:00 2001 From: Davis Mosenkovs Date: Sun, 15 Jan 2017 02:37:41 +0200 Subject: [PATCH] Fix alarm clock detection Fix alarm clock detection broken in 411a3781fdab270984299e47f136abec8395ff57 --- README.rst | 1 + mopidy_musicbox_webclient/webclient.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/README.rst b/README.rst index fad5266..10819f4 100644 --- a/README.rst +++ b/README.rst @@ -113,6 +113,7 @@ v2.4.0 (UNRELEASED) **Fixes** +- Fixed `Alarm Clock `_ detection. - Only show 'Show Album' or 'Show Artist' options in popup menus if URI's for those resources are available. (Fixes: `#213 `_). - Now shows correct hostname information in loader popup. (Fixes: `#209 `_). diff --git a/mopidy_musicbox_webclient/webclient.py b/mopidy_musicbox_webclient/webclient.py index e185b3a..9175429 100644 --- a/mopidy_musicbox_webclient/webclient.py +++ b/mopidy_musicbox_webclient/webclient.py @@ -40,7 +40,7 @@ class Webclient(object): return ws_url 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): return self.ext_config.get('musicbox', False)