2
0
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:
Jarrod Johnson
2026-03-24 08:29:40 -04:00
parent 8e508ee858
commit 9b6ead31a7

View File

@@ -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: