Skip to content

Commit

Permalink
Merge pull request #28 from metalblue:fix-string-sensors
Browse files Browse the repository at this point in the history
Remove enum device class from string sensors
  • Loading branch information
britkat1980 authored May 13, 2023
2 parents 5fd9021 + 7d83633 commit 5cb8add
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 @@ -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"
Expand Down

0 comments on commit 5cb8add

Please sign in to comment.