Home Assistant Unofficial Reference 2024.12.1
homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData Class Reference

Public Member Functions

def __init__ (self, config, hass)
 
def initialize (self, now)
 
def parse_children (self, json, devices, path, names)
 
def refresh (self)
 
def update (self)
 

Public Attributes

 data
 
 devices
 

Private Attributes

 _config
 
 _hass
 

Detailed Description

Class used to pull data from OHM and create sensors.

Definition at line 133 of file sensor.py.

Constructor & Destructor Documentation

◆ __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.

Member Function Documentation

◆ 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.

Member Data Documentation

◆ _config

homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData._config
private

Definition at line 139 of file sensor.py.

◆ _hass

homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData._hass
private

Definition at line 140 of file sensor.py.

◆ data

homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData.data

Definition at line 138 of file sensor.py.

◆ devices

homeassistant.components.openhardwaremonitor.sensor.OpenHardwareMonitorData.devices

Definition at line 141 of file sensor.py.


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