def METHOD_NAME(self,
                         connection,
                         sender_name,
                         object_path,
                         interface_name,
                         signal_name,
                         parameters,
                         user_data):
    """Handle dbus prepare for sleep signal."""
    sleeping = parameters[0]
    log.debug("Received dbus signal %s%s for Timer",
              signal_name, parameters)
    # Only emit the signal if we are resuming from suspend,
    # not preparing for it.
    if not sleeping:
        self.emit_refresh()