@@ -184,7 +184,7 @@ async def play_adhan(hass: HomeAssistant, entry: ConfigEntry, prayer_type: str):
184184 sound = options .get (CONF_DAY_SOUND , "01-adhan.mp3" )
185185
186186 play_method = options .get (CONF_PLAY_METHOD , "media_player" )
187- media_path = await _get_media_url (hass , f"/local/sounds/{ sound } " )
187+ media_path = await _get_media_url (hass , f"/local/nida/ sounds/{ sound } " )
188188
189189 _LOGGER .info (f"Playing { sound } on { speaker } at volume { volume } " )
190190
@@ -259,7 +259,7 @@ async def check_reminders(hass, entry, coordinator, now_ts, prayers):
259259 _LOGGER .info (f"Reminder { r_num } for { prayer_name } in { minutes } min" )
260260
261261 if sound :
262- media_path = await _get_media_url (hass , f"/local/sounds/{ sound } " )
262+ media_path = await _get_media_url (hass , f"/local/nida/ sounds/{ sound } " )
263263 try :
264264 await hass .services .async_call (
265265 "media_player" , "play_media" ,
@@ -322,7 +322,7 @@ async def check_tarhim(hass: HomeAssistant, entry: ConfigEntry, coordinator, now
322322 if isinstance (speaker , str ): speaker = [speaker ]
323323 volume = _get_volume (options , CONF_TARHIM_VOLUME , 10 )
324324 sound = options .get (CONF_TARHIM_SOUND , "01-tarhim.mp3" )
325- media_path = await _get_media_url (hass , f"/local/sounds/{ sound } " )
325+ media_path = await _get_media_url (hass , f"/local/nida/ sounds/{ sound } " )
326326
327327 _LOGGER .info (f"Playing tarhim: { sound } " )
328328 await hass .services .async_call (
@@ -349,7 +349,7 @@ async def handle_preview(call):
349349 speaker = call .data .get ("speaker" , options .get (CONF_DAY_SPEAKER , "media_player.adhan_speakers" ))
350350 volume = call .data .get ("volume" , 0.5 )
351351 play_method = options .get (CONF_PLAY_METHOD , "media_player" )
352- media_path = await _get_media_url (hass , f"/local/sounds/{ sound } " )
352+ media_path = await _get_media_url (hass , f"/local/nida/ sounds/{ sound } " )
353353
354354 if play_method == "media_player" :
355355 await hass .services .async_call (
@@ -384,7 +384,7 @@ async def handle_test_tarhim(call):
384384 speaker = call .data .get ("speaker" , options .get (CONF_TARHIM_SPEAKER , "media_player.adhan_speakers" ))
385385 volume = call .data .get ("volume" , options .get (CONF_TARHIM_VOLUME , 0.4 ))
386386 sound = options .get (CONF_TARHIM_SOUND , "01-tarhim.mp3" )
387- media_path = await _get_media_url (hass , f"/local/sounds/{ sound } " )
387+ media_path = await _get_media_url (hass , f"/local/nida/ sounds/{ sound } " )
388388
389389 await hass .services .async_call (
390390 "media_player" , "play_media" ,
@@ -412,7 +412,7 @@ async def handle_test_reminder(call):
412412 volume = _get_volume (options , CONF_DAY_VOLUME , 50 )
413413
414414 if sound :
415- media_path = await _get_media_url (hass , f"/local/sounds/{ sound } " )
415+ media_path = await _get_media_url (hass , f"/local/nida/ sounds/{ sound } " )
416416 await hass .services .async_call (
417417 "media_player" , "play_media" ,
418418 {"entity_id" : speaker , "media_content_id" : media_path ,
0 commit comments