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