Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.mobile_app.util Namespace Reference

Functions

str async_create_cloud_hook (HomeAssistant hass, str webhook_id, ConfigEntry|None entry)
 
str|None get_notify_service (HomeAssistant hass, str webhook_id)
 
bool supports_push (HomeAssistant hass, str webhook_id)
 
str|None webhook_id_from_device_id (HomeAssistant hass, str device_id)
 

Variables

 _CLOUD_HOOK_LOCK = asyncio.Lock()
 

Detailed Description

Mobile app utility functions.

Function Documentation

◆ async_create_cloud_hook()

str homeassistant.components.mobile_app.util.async_create_cloud_hook ( HomeAssistant  hass,
str  webhook_id,
ConfigEntry | None   entry 
)
Create a cloud hook.

Definition at line 66 of file util.py.

◆ get_notify_service()

str | None homeassistant.components.mobile_app.util.get_notify_service ( HomeAssistant  hass,
str  webhook_id 
)
Return the notify service for this webhook ID.

Definition at line 52 of file util.py.

◆ supports_push()

bool homeassistant.components.mobile_app.util.supports_push ( HomeAssistant  hass,
str  webhook_id 
)
Return if push notifications is supported.

Definition at line 42 of file util.py.

◆ webhook_id_from_device_id()

str | None homeassistant.components.mobile_app.util.webhook_id_from_device_id ( HomeAssistant  hass,
str  device_id 
)
Get webhook ID from device ID.

Definition at line 29 of file util.py.

Variable Documentation

◆ _CLOUD_HOOK_LOCK

homeassistant.components.mobile_app.util._CLOUD_HOOK_LOCK = asyncio.Lock()
private

Definition at line 63 of file util.py.