Fix incorrect annotation async flock notify (#31342)
* Fix incorrect annotation async flock notify * Update notify.py * Update notify.py Co-authored-by: Pascal Vizeli <pascal.vizeli@syshack.ch>
This commit is contained in:
parent
d405069406
commit
6a7bb7b149
1 changed files with 1 additions and 1 deletions
|
@ -16,7 +16,7 @@ _RESOURCE = "https://api.flock.com/hooks/sendMessage/"
|
|||
PLATFORM_SCHEMA = PLATFORM_SCHEMA.extend({vol.Required(CONF_ACCESS_TOKEN): cv.string})
|
||||
|
||||
|
||||
async def get_service(hass, config, discovery_info=None):
|
||||
async def async_get_service(hass, config, discovery_info=None):
|
||||
"""Get the Flock notification service."""
|
||||
access_token = config.get(CONF_ACCESS_TOKEN)
|
||||
url = f"{_RESOURCE}{access_token}"
|
||||
|
|
Loading…
Add table
Reference in a new issue