Functions | |
| bool | _update_duckdns (ClientSession session, str domain, str token, *str|None|object txt=_SENTINEL, bool clear=False) |
| bool | async_setup (HomeAssistant hass, ConfigType config) |
| CALLBACK_TYPE | async_track_time_interval_backoff (HomeAssistant hass, Callable[[datetime], Coroutine[Any, Any, bool]] action, Sequence[timedelta] intervals) |
Variables | |
| _LOGGER = logging.getLogger(__name__) | |
| _SENTINEL = object() | |
| string | ATTR_TXT = "txt" |
| CONFIG_SCHEMA | |
| string | DOMAIN = "duckdns" |
| INTERVAL = timedelta(minutes=5) | |
| string | SERVICE_SET_TXT = "set_txt" |
| SERVICE_TXT_SCHEMA = vol.Schema({vol.Required(ATTR_TXT): vol.Any(None, cv.string)}) | |
| string | UPDATE_URL = "https://www.duckdns.org/update" |
Integrate with DuckDNS.
|
private |
Update DuckDNS.
Definition at line 88 of file __init__.py.
| bool homeassistant.components.duckdns.async_setup | ( | HomeAssistant | hass, |
| ConfigType | config | ||
| ) |
Initialize the DuckDNS component.
Definition at line 55 of file __init__.py.
| CALLBACK_TYPE homeassistant.components.duckdns.async_track_time_interval_backoff | ( | HomeAssistant | hass, |
| Callable[[datetime], Coroutine[Any, Any, bool]] | action, | ||
| Sequence[timedelta] | intervals | ||
| ) |
Add a listener that fires repetitively at every timedelta interval.
Definition at line 122 of file __init__.py.
|
private |
Definition at line 28 of file __init__.py.
|
private |
Definition at line 85 of file __init__.py.
| string homeassistant.components.duckdns.ATTR_TXT = "txt" |
Definition at line 30 of file __init__.py.
| homeassistant.components.duckdns.CONFIG_SCHEMA |
Definition at line 40 of file __init__.py.
| string homeassistant.components.duckdns.DOMAIN = "duckdns" |
Definition at line 32 of file __init__.py.
| homeassistant.components.duckdns.INTERVAL = timedelta(minutes=5) |
Definition at line 34 of file __init__.py.
| string homeassistant.components.duckdns.SERVICE_SET_TXT = "set_txt" |
Definition at line 36 of file __init__.py.
| homeassistant.components.duckdns.SERVICE_TXT_SCHEMA = vol.Schema({vol.Required(ATTR_TXT): vol.Any(None, cv.string)}) |
Definition at line 52 of file __init__.py.
| string homeassistant.components.duckdns.UPDATE_URL = "https://www.duckdns.org/update" |
Definition at line 38 of file __init__.py.