Public Member Functions | |
| None | __init__ (self, Callable[[str, str], None] on_change, list[str] urls) |
| None | add (self, str url) |
| None | remove (self, str url) |
Public Attributes | |
| urls | |
Private Attributes | |
| _on_change | |
Manage urls to be used on the frontend. This is abstracted into a class because some integrations add a remove these directly on hass.data
Definition at line 205 of file __init__.py.
| None homeassistant.components.frontend.UrlManager.__init__ | ( | self, | |
| Callable[[str, str], None] | on_change, | ||
| list[str] | urls | ||
| ) |
Init the url manager.
Definition at line 213 of file __init__.py.
| None homeassistant.components.frontend.UrlManager.add | ( | self, | |
| str | url | ||
| ) |
Add a url to the set.
Definition at line 222 of file __init__.py.
| None homeassistant.components.frontend.UrlManager.remove | ( | self, | |
| str | url | ||
| ) |
Remove a url from the set.
Definition at line 227 of file __init__.py.
|
private |
Definition at line 219 of file __init__.py.
| homeassistant.components.frontend.UrlManager.urls |
Definition at line 220 of file __init__.py.