Add new Islamic prayer times calculation method (#79278)

* Adding new calculation method

Adding calculation method Turkey.
islamic_prayer_times 0.0.6 already have turkey as a calc_method, bringing that into here.

* Update const.py

Updated with the feedback

* Importing PrayerTimesCalculator

* Update const.py
This commit is contained in:
MrAliFu 2022-10-03 23:36:06 -05:00 committed by GitHub
parent a3989b90fe
commit 8d3e3ee6e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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"