@property
    def state(self):
        if len(self._states) > 0:
            return self._states[0] if self.is_on else self._states[1]
        return self.value
Use runtime configuration from an existing output or input file
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/isy994.py/ISYDeviceABC.state--crossover with--dataset/ETHPy150Open hyperion-rt/hyperion/hyperion/model/model.py/Model.use_run_config