Fix Islamic prayer times naming (#34784)

This commit is contained in:
Rami Mosleh authored and GitHub committed 2020-04-29 13:38:20 +02:00
1 parent 24fd395d09
commit 6e0d61e5e8
5 files changed
+36 -27

No files matched your search

@@ -23,6 +23,8 @@ async def test_islamic_prayer_times_sensors(hass):
for prayer in PRAYER_TIMES:
assert (
hass.states.get(f"sensor.{prayer}_prayer").state
hass.states.get(
f"sensor.{prayer}_{islamic_prayer_times.const.SENSOR_TYPES[prayer]}"
).state
== PRAYER_TIMES_TIMESTAMPS[prayer].isoformat()
)