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

Namespaces

 config_flow
 
 const
 
 coordinator
 
 diagnostics
 
 sensor
 
 weather
 

Classes

class  NWSData
 

Functions

bool async_setup_entry (HomeAssistant hass, NWSConfigEntry entry)
 
bool async_unload_entry (HomeAssistant hass, NWSConfigEntry entry)
 
str base_unique_id (float latitude, float longitude)
 
DeviceInfo device_info (float latitude, float longitude)
 

Variables

 _LOGGER = logging.getLogger(__name__)
 
 NWSConfigEntry
 
list PLATFORMS = [Platform.SENSOR, Platform.WEATHER]
 

Detailed Description

The National Weather Service integration.

Function Documentation

◆ async_setup_entry()

bool homeassistant.components.nws.async_setup_entry ( HomeAssistant  hass,
NWSConfigEntry  entry 
)
Set up a National Weather Service entry.

Definition at line 55 of file __init__.py.

◆ async_unload_entry()

bool homeassistant.components.nws.async_unload_entry ( HomeAssistant  hass,
NWSConfigEntry  entry 
)
Unload a config entry.

Definition at line 158 of file __init__.py.

◆ base_unique_id()

str homeassistant.components.nws.base_unique_id ( float  latitude,
float  longitude 
)
Return unique id for entries in configuration.

Definition at line 40 of file __init__.py.

◆ device_info()

DeviceInfo homeassistant.components.nws.device_info ( float  latitude,
float  longitude 
)
Return device registry information.

Definition at line 163 of file __init__.py.

Variable Documentation

◆ _LOGGER

homeassistant.components.nws._LOGGER = logging.getLogger(__name__)
private

Definition at line 33 of file __init__.py.

◆ NWSConfigEntry

homeassistant.components.nws.NWSConfigEntry

Definition at line 37 of file __init__.py.

◆ PLATFORMS

list homeassistant.components.nws.PLATFORMS = [Platform.SENSOR, Platform.WEATHER]

Definition at line 35 of file __init__.py.