|
| None | __init__ (self, HomeAssistant hass) |
| |
| AreaEntry | async_create (self, str name, *set[str]|None aliases=None, str|None floor_id=None, str|None icon=None, set[str]|None labels=None, str|None picture=None) |
| |
| None | async_delete (self, str area_id) |
| |
| AreaEntry|None | async_get_area (self, str area_id) |
| |
| AreaEntry|None | async_get_area_by_name (self, str name) |
| |
| AreaEntry | async_get_or_create (self, str name) |
| |
| Iterable[AreaEntry] | async_list_areas (self) |
| |
| None | async_load (self) |
| |
| AreaEntry | async_update (self, str area_id, *set[str]|UndefinedType aliases=UNDEFINED, str|None|UndefinedType floor_id=UNDEFINED, str|None|UndefinedType icon=UNDEFINED, set[str]|UndefinedType labels=UNDEFINED, str|UndefinedType name=UNDEFINED, str|None|UndefinedType picture=UNDEFINED) |
| |
Class to hold a registry of areas.
Definition at line 191 of file area_registry.py.
◆ __init__()
| None homeassistant.helpers.area_registry.AreaRegistry.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass |
|
) |
| |
◆ _async_setup_cleanup()
| None homeassistant.helpers.area_registry.AreaRegistry._async_setup_cleanup |
( |
|
self | ) |
|
|
private |
◆ _async_update()
◆ _data_to_save()
Return data of area registry to store in a file.
Definition at line 394 of file area_registry.py.
◆ _generate_id()
| str homeassistant.helpers.area_registry.AreaRegistry._generate_id |
( |
|
self, |
|
|
str |
name |
|
) |
| |
|
private |
◆ async_create()
| AreaEntry homeassistant.helpers.area_registry.AreaRegistry.async_create |
( |
|
self, |
|
|
str |
name, |
|
|
*set[str] | None |
aliases = None, |
|
|
str | None |
floor_id = None, |
|
|
str | None |
icon = None, |
|
|
set[str] | None |
labels = None, |
|
|
str | None |
picture = None |
|
) |
| |
◆ async_delete()
| None homeassistant.helpers.area_registry.AreaRegistry.async_delete |
( |
|
self, |
|
|
str |
area_id |
|
) |
| |
◆ async_get_area()
| AreaEntry | None homeassistant.helpers.area_registry.AreaRegistry.async_get_area |
( |
|
self, |
|
|
str |
area_id |
|
) |
| |
Get area by id.
We retrieve the DeviceEntry from the underlying dict to avoid
the overhead of the UserDict __getitem__.
Definition at line 209 of file area_registry.py.
◆ async_get_area_by_name()
| AreaEntry | None homeassistant.helpers.area_registry.AreaRegistry.async_get_area_by_name |
( |
|
self, |
|
|
str |
name |
|
) |
| |
◆ async_get_or_create()
| AreaEntry homeassistant.helpers.area_registry.AreaRegistry.async_get_or_create |
( |
|
self, |
|
|
str |
name |
|
) |
| |
◆ async_list_areas()
| Iterable[AreaEntry] homeassistant.helpers.area_registry.AreaRegistry.async_list_areas |
( |
|
self | ) |
|
◆ async_load()
| None homeassistant.helpers.area_registry.AreaRegistry.async_load |
( |
|
self | ) |
|
◆ async_update()
◆ _area_data
| homeassistant.helpers.area_registry.AreaRegistry._area_data |
|
private |
◆ _store
| homeassistant.helpers.area_registry.AreaRegistry._store |
|
private |
◆ areas
| homeassistant.helpers.area_registry.AreaRegistry.areas |
◆ hass
| homeassistant.helpers.area_registry.AreaRegistry.hass |
The documentation for this class was generated from the following file: