Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.command_line.sensor.CommandSensorData Class Reference

Public Member Functions

None __init__ (self, HomeAssistant hass, str command, int command_timeout)
 
None async_update (self)
 

Public Attributes

 command
 
 hass
 
 timeout
 
 value
 

Detailed Description

The class for handling the data retrieval.

Definition at line 206 of file sensor.py.

Constructor & Destructor Documentation

◆ __init__()

None homeassistant.components.command_line.sensor.CommandSensorData.__init__ (   self,
HomeAssistant  hass,
str  command,
int  command_timeout 
)
Initialize the data object.

Definition at line 209 of file sensor.py.

Member Function Documentation

◆ async_update()

None homeassistant.components.command_line.sensor.CommandSensorData.async_update (   self)
Get the latest data with a shell command.

Definition at line 216 of file sensor.py.

Member Data Documentation

◆ command

homeassistant.components.command_line.sensor.CommandSensorData.command

Definition at line 213 of file sensor.py.

◆ hass

homeassistant.components.command_line.sensor.CommandSensorData.hass

Definition at line 212 of file sensor.py.

◆ timeout

homeassistant.components.command_line.sensor.CommandSensorData.timeout

Definition at line 214 of file sensor.py.

◆ value

homeassistant.components.command_line.sensor.CommandSensorData.value

Definition at line 246 of file sensor.py.


The documentation for this class was generated from the following file: