Home Assistant Unofficial Reference 2024.12.1
helpers.py File Reference

Go to the source code of this file.

Namespaces

 homeassistant.components.mobile_app.helpers
 

Functions

bytes homeassistant.components.mobile_app.helpers._convert_legacy_encryption_key (str key)
 
JsonValueType|None homeassistant.components.mobile_app.helpers._decrypt_payload_helper (str|bytes key, bytes ciphertext, bytes key_bytes, type[RawEncoder|HexEncoder] key_encoder)
 
JsonValueType|None homeassistant.components.mobile_app.helpers.decrypt_payload (str key, bytes ciphertext)
 
JsonValueType|None homeassistant.components.mobile_app.helpers.decrypt_payload_legacy (str key, bytes ciphertext)
 
DeviceInfo homeassistant.components.mobile_app.helpers.device_info (dict registration)
 
Response homeassistant.components.mobile_app.helpers.empty_okay_response (dict|None headers=None, HTTPStatus status=HTTPStatus.OK)
 
Response homeassistant.components.mobile_app.helpers.error_response (str code, str message, HTTPStatus status=HTTPStatus.BAD_REQUEST, dict|None headers=None)
 
Context homeassistant.components.mobile_app.helpers.registration_context (Mapping[str, Any] registration)
 
dict homeassistant.components.mobile_app.helpers.safe_registration (dict registration)
 
dict homeassistant.components.mobile_app.helpers.savable_state (HomeAssistant hass)
 
Callable[[bytes, bytes], bytes] homeassistant.components.mobile_app.helpers.setup_decrypt (type[RawEncoder|HexEncoder] key_encoder)
 
Callable[[bytes, bytes], bytes] homeassistant.components.mobile_app.helpers.setup_encrypt (type[RawEncoder|HexEncoder] key_encoder)
 
Response homeassistant.components.mobile_app.helpers.webhook_response (Any data, *Mapping[str, Any] registration, HTTPStatus status=HTTPStatus.OK, Mapping[str, str]|None headers=None)
 

Variables

 homeassistant.components.mobile_app.helpers._LOGGER = logging.getLogger(__name__)