'Init the Tellstick device.'

def __init__(self, tellcore_id, tellcore_registry, signal_repetitions):

    self._signal_repetitions = signal_repetitions
    self._state = None
    self._requested_state = None
    self._requested_data = None
    self._repeats_left = 0
    self._tellcore_device = tellcore_registry.get_tellcore_device(tellcore_id)
    self._name = self._tellcore_device.name
    self._update_from_tellcore()
    tellcore_registry.register_ha_device(tellcore_id, self)
