|
| None | __init__ (self, HomeAssistant hass) |
| |
| FloorEntry | async_create (self, str name, *set[str]|None aliases=None, str|None icon=None, int|None level=None) |
| |
| None | async_delete (self, str floor_id) |
| |
| FloorEntry|None | async_get_floor (self, str floor_id) |
| |
| FloorEntry|None | async_get_floor_by_name (self, str name) |
| |
| Iterable[FloorEntry] | async_list_floors (self) |
| |
| None | async_load (self) |
| |
| FloorEntry | async_update (self, str floor_id, *set[str]|UndefinedType aliases=UNDEFINED, str|None|UndefinedType icon=UNDEFINED, int|UndefinedType level=UNDEFINED, str|UndefinedType name=UNDEFINED) |
| |
Class to hold a registry of floors.
Definition at line 95 of file floor_registry.py.
◆ __init__()
| None homeassistant.helpers.floor_registry.FloorRegistry.__init__ |
( |
|
self, |
|
|
HomeAssistant |
hass |
|
) |
| |
◆ _data_to_save()
◆ _generate_id()
| str homeassistant.helpers.floor_registry.FloorRegistry._generate_id |
( |
|
self, |
|
|
str |
name |
|
) |
| |
|
private |
◆ async_create()
| FloorEntry homeassistant.helpers.floor_registry.FloorRegistry.async_create |
( |
|
self, |
|
|
str |
name, |
|
|
*set[str] | None |
aliases = None, |
|
|
str | None |
icon = None, |
|
|
int | None |
level = None |
|
) |
| |
◆ async_delete()
| None homeassistant.helpers.floor_registry.FloorRegistry.async_delete |
( |
|
self, |
|
|
str |
floor_id |
|
) |
| |
◆ async_get_floor()
| FloorEntry | None homeassistant.helpers.floor_registry.FloorRegistry.async_get_floor |
( |
|
self, |
|
|
str |
floor_id |
|
) |
| |
Get floor by id.
We retrieve the FloorEntry from the underlying dict to avoid
the overhead of the UserDict __getitem__.
Definition at line 113 of file floor_registry.py.
◆ async_get_floor_by_name()
| FloorEntry | None homeassistant.helpers.floor_registry.FloorRegistry.async_get_floor_by_name |
( |
|
self, |
|
|
str |
name |
|
) |
| |
◆ async_list_floors()
| Iterable[FloorEntry] homeassistant.helpers.floor_registry.FloorRegistry.async_list_floors |
( |
|
self | ) |
|
◆ async_load()
| None homeassistant.helpers.floor_registry.FloorRegistry.async_load |
( |
|
self | ) |
|
◆ async_update()
◆ _floor_data
| homeassistant.helpers.floor_registry.FloorRegistry._floor_data |
|
private |
◆ _store
| homeassistant.helpers.floor_registry.FloorRegistry._store |
|
private |
◆ floors
| homeassistant.helpers.floor_registry.FloorRegistry.floors |
◆ hass
| homeassistant.helpers.floor_registry.FloorRegistry.hass |
The documentation for this class was generated from the following file: