diff --git a/lib/ha_notifier/application.ex b/lib/ha_notifier/application.ex index aa95134..9b8ebab 100644 --- a/lib/ha_notifier/application.ex +++ b/lib/ha_notifier/application.ex @@ -12,7 +12,7 @@ defmodule HANotifier.Application do children = [ {HANotifier.Listener, port}, - {HANotifier.LibnotifyNotifier, nil} + HANotifier.LibnotifyNotifier ] # See https://hexdocs.pm/elixir/Supervisor.html diff --git a/lib/ha_notifier/libnotify_notifier.ex b/lib/ha_notifier/libnotify_notifier.ex index bc8426d..c0434e0 100644 --- a/lib/ha_notifier/libnotify_notifier.ex +++ b/lib/ha_notifier/libnotify_notifier.ex @@ -3,7 +3,7 @@ defmodule HANotifier.LibnotifyNotifier do use GenServer - def start_link(nil) do + def start_link([]) do GenServer.start_link(__MODULE__, nil, name: __MODULE__) end