mirror of
https://opendev.org/x/pyghmi
synced 2024-12-25 12:41:37 +00:00
Ignore exhaust when looking for inlet
External environment is vague, but 'exhaust' in the name is a pretty safe disqualifier. Change-Id: I4395b89d48ea25f72abe6136856401598d8346f7
This commit is contained in:
parent
3f16d45c1e
commit
7e643ce3b5
@ -104,6 +104,8 @@ class OEMHandler(object):
|
||||
if sensor.sensor_type != 'Temperature':
|
||||
continue
|
||||
if sensor.entity == 'External environment':
|
||||
if 'exhaust' in sensor.sensor_name.lower():
|
||||
continue
|
||||
extenv.append(sensor.sensor_name)
|
||||
if sensor.entity == 'Air inlet':
|
||||
airinlets.append(sensor.sensor_name)
|
||||
|
Loading…
Reference in New Issue
Block a user