Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.cert_expiry.helper Namespace Reference

Functions

dict[str, Any] async_get_cert (HomeAssistant hass, str host, int port)
 
datetime.datetime get_cert_expiry_timestamp (HomeAssistant hass, str hostname, int port)
 

Detailed Description

Helper functions for the Cert Expiry platform.

Function Documentation

◆ async_get_cert()

dict[str, Any] homeassistant.components.cert_expiry.helper.async_get_cert ( HomeAssistant  hass,
str  host,
int  port 
)
Get the certificate for the host and port combination.

Definition at line 22 of file helper.py.

◆ get_cert_expiry_timestamp()

datetime.datetime homeassistant.components.cert_expiry.helper.get_cert_expiry_timestamp ( HomeAssistant  hass,
str  hostname,
int  port 
)
Return the certificate's expiration timestamp.

Definition at line 43 of file helper.py.