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

Functions

list[str] extract_subcodes_as_strings (Any subcodes)
 
bool is_auth_error (Exception error)
 
str stringify_onvif_error (Exception error)
 

Detailed Description

ONVIF util.

Function Documentation

◆ extract_subcodes_as_strings()

list[str] homeassistant.components.onvif.util.extract_subcodes_as_strings ( Any  subcodes)
Stringify ONVIF subcodes.

Definition at line 10 of file util.py.

◆ is_auth_error()

bool homeassistant.components.onvif.util.is_auth_error ( Exception  error)
Return True if error is an authentication error.

Most of the tested cameras do not return a proper error code when
authentication fails, so we need to check the error message as well.

Definition at line 41 of file util.py.

◆ stringify_onvif_error()

str homeassistant.components.onvif.util.stringify_onvif_error ( Exception  error)
Stringify ONVIF error.

Definition at line 17 of file util.py.