'Initialize the device.'

def __init__(self, name, event, datas, signal_repetitions):

    self.signal_repetitions = signal_repetitions
    self._name = name
    self._event = event
    self._state = datas[ATTR_STATE]
    self._should_fire_event = datas[ATTR_FIREEVENT]
    self._brightness = 0
