def start(self):
        # Ensure a local API exists to connect with remote
        if self.config.api is None:
            if not bootstrap.setup_component(self, 'api'):
                raise HomeAssistantError(
                    'Unable to setup local API to receive events')

        ha.create_timer(self)

        self.bus.fire(ha.EVENT_HOMEASSISTANT_START,
                      origin=ha.EventOrigin.remote)

        # Setup that events from remote_api get forwarded to local_api
        # Do this after we fire START, otherwise HTTP is not started
        if not connect_remote_events(self.remote_api, self.config.api):
            raise HomeAssistantError((
                'Could not setup event forwarding from api {} to '
                'local api {}').format(self.remote_api, self.config.api))
Notes greater than 17 are ignored.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/remote.py/HomeAssistant.start--crossover with--dataset/ETHPy150Open ntoll/foox/test/test_lilypond.py/TestLilypond.test_get_cantus_firmus_range_too_high