Skip to content

Commit

Permalink
Remove enum device class from string sensors
Browse files Browse the repository at this point in the history
  • Loading branch information
metalblue committed May 8, 2023
1 parent fdc6785 commit 7d83633
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion GivTCP/HA_Discovery.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7d83633

Please sign in to comment.