Skip to content

Commit

Permalink
Fix issue with GPIO output default icon
Browse files Browse the repository at this point in the history
  • Loading branch information
bkbilly committed Jun 2, 2024
1 parent 941e26d commit 69cdf43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lnxlink/modules/gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def exposed_controls(self):
discovery_info[f"GPIO {device['name']}"] = {
"type": "switch",
"value_template": f"{{{{ value_json.get('output_{device['name']}') }}}}",
"icon": "mdi:bullhorn",
"icon": device.get("device_class", "mdi:bullhorn"),
}
return discovery_info

Expand Down

0 comments on commit 69cdf43

Please sign in to comment.