Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.sensor.websocket_api Namespace Reference

Functions

None async_setup (HomeAssistant hass)
 
None ws_device_class_units (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 
None ws_numeric_device_classes (HomeAssistant hass, websocket_api.ActiveConnection connection, dict[str, Any] msg)
 

Variables

 _NUMERIC_DEVICE_CLASSES = list(set(SensorDeviceClass) - NON_NUMERIC_DEVICE_CLASSES)
 

Detailed Description

The sensor websocket API.

Function Documentation

◆ async_setup()

None homeassistant.components.sensor.websocket_api.async_setup ( HomeAssistant  hass)
Set up the sensor websocket API.

Definition at line 23 of file websocket_api.py.

◆ ws_device_class_units()

None homeassistant.components.sensor.websocket_api.ws_device_class_units ( HomeAssistant  hass,
websocket_api.ActiveConnection  connection,
dict[str, Any]   msg 
)
Return supported units for a device class.

Definition at line 36 of file websocket_api.py.

◆ ws_numeric_device_classes()

None homeassistant.components.sensor.websocket_api.ws_numeric_device_classes ( HomeAssistant  hass,
websocket_api.ActiveConnection  connection,
dict[str, Any]   msg 
)
Return numeric sensor device classes.

Definition at line 56 of file websocket_api.py.

Variable Documentation

◆ _NUMERIC_DEVICE_CLASSES

homeassistant.components.sensor.websocket_api._NUMERIC_DEVICE_CLASSES = list(set(SensorDeviceClass) - NON_NUMERIC_DEVICE_CLASSES)
private

Definition at line 19 of file websocket_api.py.