Disable async on Apprise (#40213)

This commit is contained in:
Chris Caron 2020-09-18 09:32:38 -04:00 committed by Paulus Schoutsen
parent 33b56b0cf9
commit d37fe1fbb6

View File

@ -29,8 +29,11 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
def get_service(hass, config, discovery_info=None):
"""Get the Apprise notification service."""
# Create our object
a_obj = apprise.Apprise()
# Create our Apprise Asset Object
asset = apprise.AppriseAsset(async_mode=False)
# Create our Apprise Instance (reference our asset)
a_obj = apprise.Apprise(asset=asset)
if config.get(CONF_FILE):
# Sourced from a Configuration File