mawaqit / home-assistant

Mawaqit integration - salat time and nearest mosque - in Home Assistant
54 stars 15 forks source link

Sensors bug on update_next_salat_sensor #51

Closed moha-tah closed 3 months ago

moha-tah commented 9 months ago

When someone change his favorite mosque through "Configure > Change mosque", the sensors are updated weirdly.

For example, when I changed my favorite mosque, the prayer after 'Asr was the Dhuhr of the next day.

Edit : The issue comes from somewhere else, the update_next_salat_sensor is run twice sometimes. Thus, the plugin skips some prayers.

For example if the bug appears at Fajr:

Result: According to the code, the prayer after Fajr is 'Asr :(

moha-tah commented 3 months ago

fixed