Update handler.py
This commit is contained in:
parent
2fe4c42cc1
commit
ac9ebeab9e
1 changed files with 10 additions and 1 deletions
|
@ -107,6 +107,15 @@ class HassIO:
|
|||
"""
|
||||
return self.send_command("/services/discovery", method="get")
|
||||
|
||||
@_api_data
|
||||
def get_services_discovery_entry(self, uuid):
|
||||
"""Return a single discovery data entry.
|
||||
|
||||
This method return a coroutine.
|
||||
"""
|
||||
return self.send_command(
|
||||
"/services/discovery/{}".format(uuid), method="get")
|
||||
|
||||
@_api_bool
|
||||
async def update_hass_api(self, http_config, refresh_token):
|
||||
"""Update Home Assistant API data on Hass.io."""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue