mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 19:27:45 +00:00
Disable async on Apprise (#40213)
This commit is contained in:
parent
33b56b0cf9
commit
d37fe1fbb6
@ -29,8 +29,11 @@ PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend(
|
|||||||
def get_service(hass, config, discovery_info=None):
|
def get_service(hass, config, discovery_info=None):
|
||||||
"""Get the Apprise notification service."""
|
"""Get the Apprise notification service."""
|
||||||
|
|
||||||
# Create our object
|
# Create our Apprise Asset Object
|
||||||
a_obj = apprise.Apprise()
|
asset = apprise.AppriseAsset(async_mode=False)
|
||||||
|
|
||||||
|
# Create our Apprise Instance (reference our asset)
|
||||||
|
a_obj = apprise.Apprise(asset=asset)
|
||||||
|
|
||||||
if config.get(CONF_FILE):
|
if config.get(CONF_FILE):
|
||||||
# Sourced from a Configuration File
|
# Sourced from a Configuration File
|
||||||
|
Loading…
x
Reference in New Issue
Block a user