mirror of https://github.com/home-assistant/core
26 lines
629 B
Python
26 lines
629 B
Python
"""Constants for the Sun integration."""
|
|
|
|
from typing import Final
|
|
|
|
DOMAIN: Final = "sun"
|
|
|
|
DEFAULT_NAME: Final = "Sun"
|
|
|
|
SIGNAL_POSITION_CHANGED = f"{DOMAIN}_position_changed"
|
|
SIGNAL_EVENTS_CHANGED = f"{DOMAIN}_events_changed"
|
|
|
|
|
|
STATE_ABOVE_HORIZON = "above_horizon"
|
|
STATE_BELOW_HORIZON = "below_horizon"
|
|
|
|
|
|
STATE_ATTR_AZIMUTH = "azimuth"
|
|
STATE_ATTR_ELEVATION = "elevation"
|
|
STATE_ATTR_RISING = "rising"
|
|
STATE_ATTR_NEXT_DAWN = "next_dawn"
|
|
STATE_ATTR_NEXT_DUSK = "next_dusk"
|
|
STATE_ATTR_NEXT_MIDNIGHT = "next_midnight"
|
|
STATE_ATTR_NEXT_NOON = "next_noon"
|
|
STATE_ATTR_NEXT_RISING = "next_rising"
|
|
STATE_ATTR_NEXT_SETTING = "next_setting"
|