Class used to pull data from OHM and create sensors.
Definition at line 133 of file sensor.py.
◆ __init__()
| def homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData.__init__ |
( |
|
self, |
|
|
|
config, |
|
|
|
hass |
|
) |
| |
Initialize the Open Hardware Monitor data-handler.
Definition at line 136 of file sensor.py.
◆ initialize()
| def homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData.initialize |
( |
|
self, |
|
|
|
now |
|
) |
| |
Parse of the sensors and adding of devices.
Definition at line 165 of file sensor.py.
◆ parse_children()
| def homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData.parse_children |
( |
|
self, |
|
|
|
json, |
|
|
|
devices, |
|
|
|
path, |
|
|
|
names |
|
) |
| |
Recursively loop through child objects, finding the values.
Definition at line 174 of file sensor.py.
◆ refresh()
| def homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData.refresh |
( |
|
self | ) |
|
Download and parse JSON from OHM.
Definition at line 152 of file sensor.py.
◆ update()
| def homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData.update |
( |
|
self | ) |
|
Hit by the timer with the configured interval.
Definition at line 145 of file sensor.py.
◆ _config
| homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData._config |
|
private |
◆ _hass
| homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData._hass |
|
private |
◆ data
| homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData.data |
◆ devices
| homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData.devices |
The documentation for this class was generated from the following file:
- core/homeassistant/components/openhardwaremonitor/sensor.py