def __init__(self, bus, api):
        super().__init__(None)
        self._api = api
        self.mirror()

        bus.listen(ha.EVENT_STATE_CHANGED, self._state_changed_listener)
Initalize the statemachine.
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/remote.py/StateMachine.__init__