Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.frontend.UrlManager Class Reference

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ __init__()

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.

Member Function Documentation

◆ add()

None homeassistant.components.frontend.UrlManager.add (   self,
str  url 
)
Add a url to the set.

Definition at line 222 of file __init__.py.

◆ remove()

None homeassistant.components.frontend.UrlManager.remove (   self,
str  url 
)
Remove a url from the set.

Definition at line 227 of file __init__.py.

Member Data Documentation

◆ _on_change

homeassistant.components.frontend.UrlManager._on_change
private

Definition at line 219 of file __init__.py.

◆ urls

homeassistant.components.frontend.UrlManager.urls

Definition at line 220 of file __init__.py.


The documentation for this class was generated from the following file: