* Add Islamic Prayer Times config_flow * Add Islamic Prayer Times config_flow * handle options update and fix tests * fix sensor update handling * fix pylint * fix scheduled update and add test * update test_init * update flow options to show drop list * clean up code * async scheduling and revert state to timestamp * fix update retry method * update strings * keep title as root key
15 lines
423 B
Python
15 lines
423 B
Python
"""Constants for the Islamic Prayer component."""
|
|
DOMAIN = "islamic_prayer_times"
|
|
NAME = "Islamic Prayer Times"
|
|
SENSOR_SUFFIX = "Prayer"
|
|
PRAYER_TIMES_ICON = "mdi:calendar-clock"
|
|
|
|
SENSOR_TYPES = ["Fajr", "Sunrise", "Dhuhr", "Asr", "Maghrib", "Isha", "Midnight"]
|
|
|
|
CONF_CALC_METHOD = "calc_method"
|
|
|
|
CALC_METHODS = ["isna", "karachi", "mwl", "makkah"]
|
|
DEFAULT_CALC_METHOD = "isna"
|
|
|
|
DATA_UPDATED = "Islamic_prayer_data_updated"
|