@property
    def state(self):
        if self._pwstate == "PWSTANDBY":
            return STATE_OFF
        if self._pwstate == "PWON":
            return STATE_ON

        return STATE_UNKNOWN
Return an understandable message from jinja error output
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/media_player/denon.py/DenonDevice.state--crossover with--dataset/ETHPy150Open saltstack/salt/salt/utils/templates.py/_get_jinja_error_message