Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.sun Namespace Reference

Namespaces

 config_flow
 
 const
 
 entity
 
 sensor
 
 trigger
 

Functions

bool async_setup (HomeAssistant hass, ConfigType config)
 
bool async_setup_entry (HomeAssistant hass, SunConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, SunConfigEntry entry)
 

Detailed Description

Support for functionality to keep track of the sun.

Function Documentation

◆ async_setup()

bool homeassistant.components.sun.async_setup ( HomeAssistant  hass,
ConfigType  config 
)
Track the state of the sun.

Definition at line 27 of file __init__.py.

◆ async_setup_entry()

bool homeassistant.components.sun.async_setup_entry ( HomeAssistant  hass,
SunConfigEntry  entry 
)
Set up from a config entry.

Definition at line 43 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.sun.async_unload_entry ( HomeAssistant  hass,
SunConfigEntry  entry 
)
Unload a config entry.

Definition at line 51 of file __init__.py.