def ensure_sun_risen(hass):
    if sun.is_on(hass):
        return
    fire_time_changed(hass, sun.next_rising_utc(hass) + timedelta(seconds=10))
Trigger sun to rise if below horizon.
dataset/ETHPy150Open home-assistant/home-assistant/tests/common.py/ensure_sun_risen