From a71b90cf3ec372326e638139472cfe41c084c077 Mon Sep 17 00:00:00 2001 From: rwalker777 <49888088+rwalker777@users.noreply.github.com> Date: Wed, 8 Apr 2026 15:39:45 -0500 Subject: [PATCH] Remove device class override in binary sensor config Removed device class override for binary sensor configuration. --- components/ups_hid/binary_sensor.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/ups_hid/binary_sensor.py b/components/ups_hid/binary_sensor.py index d94c073..8b28f46 100644 --- a/components/ups_hid/binary_sensor.py +++ b/components/ups_hid/binary_sensor.py @@ -59,7 +59,3 @@ async def to_code(config): # Apply sensor type specific configuration if sensor_type in BINARY_SENSOR_TYPES: sensor_config = BINARY_SENSOR_TYPES[sensor_type] - - # Override config with sensor type defaults if not specified - if "device_class" not in config and "device_class" in sensor_config: - cg.add(var.set_device_class(sensor_config["device_class"]))