diff --git a/homeassistant/components/islamic_prayer_times/const.py b/homeassistant/components/islamic_prayer_times/const.py index 86f953cc856..e037f486aaa 100644 --- a/homeassistant/components/islamic_prayer_times/const.py +++ b/homeassistant/components/islamic_prayer_times/const.py @@ -1,4 +1,6 @@ """Constants for the Islamic Prayer component.""" +from prayer_times_calculator import PrayerTimesCalculator + DOMAIN = "islamic_prayer_times" NAME = "Islamic Prayer Times" PRAYER_TIMES_ICON = "mdi:calendar-clock" @@ -15,7 +17,7 @@ SENSOR_TYPES = { CONF_CALC_METHOD = "calculation_method" -CALC_METHODS = ["isna", "karachi", "mwl", "makkah", "moonsighting"] +CALC_METHODS: list[str] = list(PrayerTimesCalculator.CALCULATION_METHODS) DEFAULT_CALC_METHOD = "isna" DATA_UPDATED = "Islamic_prayer_data_updated"