Allow disabeling notifications

This commit is contained in:
Daniel Perna 2018-07-09 01:14:17 +02:00
parent e18b11deae
commit a48779f4e3
2 changed files with 2 additions and 2 deletions

View file

@ -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"