'Return the state attributes.'

@property
def device_state_attributes(self):

    if self._api.data:
        data = self._api.data['system_stats']
        days = int(data['uptime']['days'])
        hours = int(data['uptime']['hours'])
        minutes = int(data['uptime']['minutes'])
        return {ATTR_NAME: data['system']['name'], ATTR_MODEL: data['system']['model'], ATTR_SERIAL: data['system']['serial_number'], ATTR_UPTIME: '{:0>2d}d    {:0>2d}h    {:0>2d}m'.format(days, hours, minutes)}
