* use DataUpdateCoordinator for islamic_prayer_times Add suggested type hints remove uneccassry options setup * Use entity_description for sensors * move coordinator into separate file, sensor_descptions to sensor.py * add strict typing * revert strict typing * fix test coverage * revert unrelated file changes * fix sorting * Update code based on review * add missing type hint * more missing type hints * Update homeassistant/components/islamic_prayer_times/coordinator.py Co-authored-by: Martin Hjelmare <marhje52@gmail.com> * remove config_entry parameter --------- Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
12 lines
370 B
Python
12 lines
370 B
Python
"""Constants for the Islamic Prayer component."""
|
|
from typing import Final
|
|
|
|
from prayer_times_calculator import PrayerTimesCalculator
|
|
|
|
DOMAIN: Final = "islamic_prayer_times"
|
|
NAME: Final = "Islamic Prayer Times"
|
|
|
|
CONF_CALC_METHOD: Final = "calculation_method"
|
|
|
|
CALC_METHODS: list[str] = list(PrayerTimesCalculator.CALCULATION_METHODS)
|
|
DEFAULT_CALC_METHOD: Final = "isna"
|