mirror of
https://github.com/xcat2/confluent.git
synced 2026-04-01 15:03:31 +00:00
Consume async generator
This commit is contained in:
@@ -910,7 +910,7 @@ class IpmiHandler:
|
||||
|
||||
async def read_sensors(self, sensorname):
|
||||
if sensorname == 'all':
|
||||
sensors = await self.ipmicmd.get_sensor_descriptions()
|
||||
sensors = [x async for x in self.ipmicmd.get_sensor_descriptions()]
|
||||
readings = []
|
||||
for sensor in filter(self.match_sensor, sensors):
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user