'Set the alarm clock on the player.'

@soco_error
@soco_coordinator
def update_alarm(self, **data):

    from soco import alarms
    a = None
    for alarm in alarms.get_alarms(self.soco):
        if (alarm._alarm_id == str(data[ATTR_ALARM_ID])):
            a = alarm
    if (a is None):
        _LOGGER.warning('did    not    find    alarm    with    id    %s', data[ATTR_ALARM_ID])
        return
    if (ATTR_TIME in data):
        a.start_time = data[ATTR_TIME]
    if (ATTR_VOLUME in data):
        a.volume = int((data[ATTR_VOLUME] * 100))
    if (ATTR_ENABLED in data):
        a.enabled = data[ATTR_ENABLED]
    if (ATTR_INCLUDE_LINKED_ZONES in data):
        a.include_linked_zones = data[ATTR_INCLUDE_LINKED_ZONES]
    a.save()
