MQTT Service logs a successful transmission (#946)

This commit is contained in:
Chris Caron 2023-09-10 16:17:33 -04:00 committed by GitHub
parent 15e16ad53a
commit 1b2d1ca824
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -427,6 +427,10 @@ class NotifyMQTT(NotifyBase):
self.logger.debug('Socket Exception: %s' % str(e))
return False
if not has_error:
# Verbal notice
self.logger.info('Sent MQTT notification')
return not has_error
def url(self, privacy=False, *args, **kwargs):