diff --git a/GivTCP/HA_Discovery.py b/GivTCP/HA_Discovery.py index 53da41c1..6fca8b5c 100644 --- a/GivTCP/HA_Discovery.py +++ b/GivTCP/HA_Discovery.py @@ -159,7 +159,6 @@ def create_device_payload(topic,SN): del(tempObj['unit_of_meas']) 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"