@@ -427,40 +427,40 @@ def _appliance_measurements(
427427
428428 for m in appliance .logs ["point_log" ]:
429429 if m .type == measurement :
430- print (f' HOI10b { measurement } ' )
431- # if (
432- # measurement := next(
433- # (m for m in appliance.logs["point_log"] if m.type == measurement), None
434- # )
435- # ) is not None:
436- # print(f'HOI10b {measurement}')
437- # if skip_obsolete_measurements(appliance, measurement):
438- # continue
439- #
440- # if new_name := getattr(attrs, ATTR_NAME, None):
441- # measurement = new_name
442- #
443- # match measurement:
444- # case "elga_status_code":
445- # data["elga_status_code"] = int(appl_p_loc.text)
446- # case "select_dhw_mode":
447- # if self._dhw_allowed_modes:
448- # data["select_dhw_mode"] = appl_p_loc.text
449- #
450- # common_match_cases(measurement, attrs, appl_p_loc, data)
451- #
452- # if appliance.logs.get("interval_log") is None:
453- # continue
454- #
455- # if (
456- # measurement := next(
457- # (m for m in appliance.logs["interval_log"] if m.type == "measurement"), None
458- # )
459- # ) is not None:
460- # name = cast(SensorType, f"{measurement}_interval")
461- # data["sensors"][name] = format_measure(
462- # appl_i_loc.text, ENERGY_WATT_HOUR
463- # )
430+ print (f" HOI10b { measurement } " )
431+ # if (
432+ # measurement := next(
433+ # (m for m in appliance.logs["point_log"] if m.type == measurement), None
434+ # )
435+ # ) is not None:
436+ # print(f'HOI10b {measurement}')
437+ # if skip_obsolete_measurements(appliance, measurement):
438+ # continue
439+ #
440+ # if new_name := getattr(attrs, ATTR_NAME, None):
441+ # measurement = new_name
442+ #
443+ # match measurement:
444+ # case "elga_status_code":
445+ # data["elga_status_code"] = int(appl_p_loc.text)
446+ # case "select_dhw_mode":
447+ # if self._dhw_allowed_modes:
448+ # data["select_dhw_mode"] = appl_p_loc.text
449+ #
450+ # common_match_cases(measurement, attrs, appl_p_loc, data)
451+ #
452+ # if appliance.logs.get("interval_log") is None:
453+ # continue
454+ #
455+ # if (
456+ # measurement := next(
457+ # (m for m in appliance.logs["interval_log"] if m.type == "measurement"), None
458+ # )
459+ # ) is not None:
460+ # name = cast(SensorType, f"{measurement}_interval")
461+ # data["sensors"][name] = format_measure(
462+ # appl_i_loc.text, ENERGY_WATT_HOUR
463+ # )
464464
465465 self ._count = count_data_items (self ._count , data )
466466
0 commit comments