From 7d836339f99c95391a8c209426e83784b9c1a7af Mon Sep 17 00:00:00 2001 From: metalblue Date: Mon, 8 May 2023 18:32:20 +0100 Subject: [PATCH] Remove enum device class from string sensors --- GivTCP/HA_Discovery.py | 1 - 1 file changed, 1 deletion(-) diff --git a/GivTCP/HA_Discovery.py b/GivTCP/HA_Discovery.py index 68744791..22ad60b3 100644 --- a/GivTCP/HA_Discovery.py +++ b/GivTCP/HA_Discovery.py @@ -157,7 +157,6 @@ def create_device_payload(topic,SN): tempObj['device_class']="timestamp" if GivLUT.entity_type[str(topic).split("/")[-1]].sensorClass=="string": del(tempObj['unit_of_meas']) - tempObj['device_class']="enum" elif GivLUT.entity_type[str(topic).split("/")[-1]].devType=="switch": tempObj['payload_on']="enable" tempObj['payload_off']="disable"