@property
    def state(self):
        """Return the state of the sun."""
        if self.next_rising > self.next_setting:
            return STATE_ABOVE_HORIZON

        return STATE_BELOW_HORIZON
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/components/sun.py/Sun.state/original