mirror of
https://github.com/xcat2/confluent.git
synced 2025-01-17 21:23:18 +00:00
Merge pull request #1 from jjohnson42/addstateids
Add numeric state_ids to sensor readings
This commit is contained in:
commit
e55f55677b
@ -746,6 +746,8 @@ class SensorReadings(ConfluentMessage):
|
||||
sensordict['units'] = sensor['units']
|
||||
if 'states' in sensor:
|
||||
sensordict['states'] = sensor['states']
|
||||
if 'state_ids' in sensor:
|
||||
sensordict['state_ids'] = sensor['state_ids']
|
||||
if 'health' in sensor:
|
||||
sensordict['health'] = sensor['health']
|
||||
if 'type' in sensor:
|
||||
|
@ -279,7 +279,8 @@ persistent_ipmicmds = {}
|
||||
|
||||
def _dict_sensor(pygreading):
|
||||
retdict = {'name': pygreading.name, 'value': pygreading.value,
|
||||
'states': pygreading.states, 'units': pygreading.units,
|
||||
'states': pygreading.states, 'state_ids': pygreading.state_ids,
|
||||
'units': pygreading.units,
|
||||
'health': _str_health(pygreading.health),
|
||||
'type': pygreading.type,
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user