mirror of
https://opendev.org/x/pyghmi
synced 2025-01-28 11:57:34 +00:00
Amend to add back a missing portion of partial patch
The previous change was only half of the actual change. Change-Id: Iaecc0279eb4252af070c925d86466c8a6307b9de
This commit is contained in:
parent
6a7df11e3c
commit
dc121ebd77
@ -125,7 +125,8 @@ def natural_sort(iterable):
|
||||
|
||||
|
||||
class SensorReading(object):
|
||||
def __init__(self, healthinfo, sensor=None, value=None, units=None):
|
||||
def __init__(self, healthinfo, sensor=None, value=None, units=None,
|
||||
unavailable=False):
|
||||
if sensor:
|
||||
self.name = sensor['name']
|
||||
else:
|
||||
@ -136,6 +137,7 @@ class SensorReading(object):
|
||||
self.state_ids = None
|
||||
self.imprecision = None
|
||||
self.units = units
|
||||
self.unavailable = unavailable
|
||||
|
||||
|
||||
class AttrDependencyHandler(object):
|
||||
|
Loading…
x
Reference in New Issue
Block a user