'Perform an action on the device.'

def action(self, action_id):

    try:
        requests.get(DEVICE_ACTION_URL.format(self.proto, self.host, self.port, self.device_id, action_id), timeout=10)
    except requests.exceptions.RequestException:
        _LOGGER.error('Action    request    for    %s    was    not    accepted    for    device    %s', action_id, self.device_id)
