The class for handling the data retrieval.
Definition at line 206 of file sensor.py.
◆ __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.
◆ 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.
◆ command
| homeassistant.components.command_line.sensor.CommandSensorData.command |
◆ hass
| homeassistant.components.command_line.sensor.CommandSensorData.hass |
◆ timeout
| homeassistant.components.command_line.sensor.CommandSensorData.timeout |
◆ value
| homeassistant.components.command_line.sensor.CommandSensorData.value |
The documentation for this class was generated from the following file:
- core/homeassistant/components/command_line/sensor.py