Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.unifiprotect.button Namespace Reference

Classes

class  ProtectAdoptButton
 
class  ProtectButton
 
class  ProtectButtonEntityDescription
 

Functions

None _async_remove_adopt_button (HomeAssistant hass, ProtectAdoptableDeviceModel device)
 
None async_setup_entry (HomeAssistant hass, UFPConfigEntry entry, AddEntitiesCallback async_add_entities)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 ADOPT_BUTTON
 

Detailed Description

Support for Ubiquiti's UniFi Protect NVR.

Function Documentation

◆ _async_remove_adopt_button()

None homeassistant.components.unifiprotect.button._async_remove_adopt_button ( HomeAssistant  hass,
ProtectAdoptableDeviceModel   device 
)
private

Definition at line 110 of file button.py.

◆ async_setup_entry()

None homeassistant.components.unifiprotect.button.async_setup_entry ( HomeAssistant  hass,
UFPConfigEntry  entry,
AddEntitiesCallback  async_add_entities 
)
Discover devices on a UniFi Protect NVR.

Definition at line 120 of file button.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.unifiprotect.button._LOGGER = logging.getLogger(__name__)
private

Definition at line 35 of file button.py.

◆ ADOPT_BUTTON

homeassistant.components.unifiprotect.button.ADOPT_BUTTON
Initial value:
1 = ProtectButtonEntityDescription[ProtectAdoptableDeviceModel](
2  key="adopt",
3  name="Adopt device",
4  icon="mdi:plus-circle",
5  ufp_press="adopt",
6 )

Definition at line 69 of file button.py.