mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 03:07:37 +00:00
Remove namecheap dns service (#9845)
This commit is contained in:
parent
c69e9c1d49
commit
f7545fe85c
@ -42,13 +42,7 @@ def async_setup(hass, config):
|
|||||||
"""Update the NamecheapDNS entry."""
|
"""Update the NamecheapDNS entry."""
|
||||||
yield from _update_namecheapdns(session, host, domain, token)
|
yield from _update_namecheapdns(session, host, domain, token)
|
||||||
|
|
||||||
@asyncio.coroutine
|
|
||||||
def update_domain_service(call):
|
|
||||||
"""Update the NamecheapDNS entry."""
|
|
||||||
yield from _update_namecheapdns(session, host, domain, token)
|
|
||||||
|
|
||||||
async_track_time_interval(hass, update_domain_interval, INTERVAL)
|
async_track_time_interval(hass, update_domain_interval, INTERVAL)
|
||||||
hass.services.async_register(DOMAIN, 'update dns', update_domain_service)
|
|
||||||
|
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user