<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def desc(self):
 """Get a short description of the automation."""

        # Auto Away (1) - Location - Enabled
        active = 'inactive'
        if self.is_active:
            active = 'active'

        return '{0} (ID: {1}) - {2} - {3}'.format(
            self.name, self.automation_id, self.type, active)