from alerts.spreads import spread_sectors
from alerts.modules.ef.m1_m2.altura_coronamiento.base import AlturaCoronamientoController
from alerts.modules.utils import single_state_create
from alerts.modules.base_states import EVENT_STATES
from base.fields import StringEnum


@spread_sectors()
class Controller(AlturaCoronamientoController):
    states = StringEnum(*EVENT_STATES, 'A1')

    _relevant_events = ['A1']

    create = single_state_create("A1")
