From 1ff2b3442a619f91a72b9367dae8904d93918eef Mon Sep 17 00:00:00 2001 From: matt1432 Date: Sun, 1 Dec 2024 15:41:42 -0500 Subject: [PATCH] feat(hass): switch to notify for notifs --- .../netdaemon/apps/Spotify/PlayAlbum/PlayAlbum.cs | 2 +- .../netdaemon/apps/Spotify/PlayArtist/PlayArtist.cs | 2 +- .../netdaemon/apps/Spotify/PlayPlaylist/PlayPlaylist.cs | 2 +- .../home-assistant/netdaemon/apps/Spotify/PlaySong/PlaySong.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayAlbum/PlayAlbum.cs b/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayAlbum/PlayAlbum.cs index 69315470..f07860d2 100644 --- a/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayAlbum/PlayAlbum.cs +++ b/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayAlbum/PlayAlbum.cs @@ -57,7 +57,7 @@ namespace NetDaemonConfig.Apps.Spotify.PlayAlbum } catch (Exception error) { - services.PersistentNotification.Create( + services.Notify.PersistentNotification( message: error.Message, title: "Erreur Spotify"); } diff --git a/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayArtist/PlayArtist.cs b/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayArtist/PlayArtist.cs index f17782bf..b9a05a16 100644 --- a/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayArtist/PlayArtist.cs +++ b/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayArtist/PlayArtist.cs @@ -55,7 +55,7 @@ namespace NetDaemonConfig.Apps.Spotify.PlayArtist } catch (Exception error) { - services.PersistentNotification.Create( + services.Notify.PersistentNotification( message: error.Message, title: "Erreur Spotify"); } diff --git a/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayPlaylist/PlayPlaylist.cs b/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayPlaylist/PlayPlaylist.cs index e6519e78..f7f4d84d 100644 --- a/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayPlaylist/PlayPlaylist.cs +++ b/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlayPlaylist/PlayPlaylist.cs @@ -89,7 +89,7 @@ namespace NetDaemonConfig.Apps.Spotify.PlayPlaylist } catch (Exception error) { - services.PersistentNotification.Create( + services.Notify.PersistentNotification( message: error.Message, title: "Erreur Spotify"); } diff --git a/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlaySong/PlaySong.cs b/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlaySong/PlaySong.cs index 82c6edb4..354b43ec 100644 --- a/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlaySong/PlaySong.cs +++ b/devices/homie/modules/home-assistant/netdaemon/apps/Spotify/PlaySong/PlaySong.cs @@ -56,7 +56,7 @@ namespace NetDaemonConfig.Apps.Spotify.PlaySong } catch (Exception error) { - services.PersistentNotification.Create( + services.Notify.PersistentNotification( message: error.Message, title: "Erreur Spotify"); }