cros_unibuild_convert: add /cros-healthd:has-backlight to generated config

When doing a unibuild conversion, replicate the logic in CL:2347141.

BUG=chromium:1114358
TEST=run for samus

Change-Id: I7948718917e61f439ffe36ad9204f33a056d4bfa
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/dev-util/+/2349670
Tested-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Trent Begin <tbegin@chromium.org>
Commit-Queue: Jack Rosenthal <jrosenth@chromium.org>
diff --git a/contrib/cros_unibuild_convert.py b/contrib/cros_unibuild_convert.py
index 5307e9c..8427ac7 100755
--- a/contrib/cros_unibuild_convert.py
+++ b/contrib/cros_unibuild_convert.py
@@ -467,6 +467,11 @@
   return None
 
 
+def genconf_has_backlight(device, _):
+  devicetype = device.lsb_val('DEVICETYPE')
+  return devicetype not in ('CHROMEBIT', 'CHROMEBOX')
+
+
 def genconf_fp_board(_, overlay):
   if overlay.fpmcu_firmware:
     return ' '.join(overlay.fpmcu_firmware)
@@ -573,6 +578,9 @@
             'ucm-suffix': (M_PUBLIC, lambda d, _: d.internal_ucm_suffix),
         },
     },
+    'cros-healthd': {
+        'has-backlight': (M_PUBLIC, genconf_has_backlight),
+    },
     'fingerprint': {
         'board': (M_PUBLIC, genconf_fp_board),
         'fingerprint-sensor-type': (M_PUBLIC, genconf_fp_type),