- if config.SleepTimer.ask.value and not inStandby:
+ if config.SleepTimer.ask.value and not Screens.Standby.inStandby:
Notifications.AddNotificationWithCallback(self.standby, MessageBox, _("A sleep timer wants to set your\nDreambox to standby. Do that now?"), timeout = 20)
else:
self.standby(True)
Notifications.AddNotificationWithCallback(self.standby, MessageBox, _("A sleep timer wants to set your\nDreambox to standby. Do that now?"), timeout = 20)
else:
self.standby(True)
@@ -39,39+41,34 @@ class SleepTimerEntry(timer.TimerEntry):