'Returns true if it will remain enabled for the specified amount of time.
DEPRECATED: this method was never fully implemented and is
considered deprecated.  Use is_enabled() instead.
Args:
time: Number of seconds in the future to look when checking for scheduled
downtime.
Returns:
True if there is no scheduled downtime for the specified capability
within the amount of time specified.
Raises:
UnknownCapabilityError, if a specified capability was not recognized.'

def will_remain_enabled_for(self, time=60):

    warnings.warn('will_remain_enabled_for()    is    deprecated:    use    is_enabled    instead.', DeprecationWarning, stacklevel=2)
    config = self._get_status()
    status = config.summary_status()
    if (status in (IsEnabledResponse.DEFAULT, IsEnabledResponse.ENABLED)):
        return True
    elif (status == IsEnabledResponse.SCHEDULED_NOW):
        return False
    elif (status == IsEnabledResponse.SCHEDULED_FUTURE):
        if config.has_time_until_scheduled():
            return (config.time_until_scheduled() >= time)
        else:
            return True
    elif (status == IsEnabledResponse.DISABLED):
        return False
    else:
        return False
