Allow disabeling notifications
This commit is contained in:
parent
e18b11deae
commit
a48779f4e3
2 changed files with 2 additions and 2 deletions
|
@ -4550,7 +4550,7 @@ class SimpleServer(socketserver.ThreadingMixIn, socketserver.TCPServer):
|
|||
def notify(title="HASS Configurator",
|
||||
message="Notification by HASS Configurator",
|
||||
notification_id=None):
|
||||
if not HASS_API:
|
||||
if not HASS_API or not NOTIFY_SERVICE:
|
||||
return
|
||||
headers = {
|
||||
"Content-Type": "application/json"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue