1 parent 7650d77 commit 94601d0Copy full SHA for 94601d0
2 files changed
.github/scripts/merge_topics.py
@@ -79,7 +79,7 @@ def main():
79
has_device_class = topic_metric_type in DEVICE_CLASS_METRIC_TYPES
80
if topic_unit is not None and topic_unit != "%" and not has_device_class:
81
entity_entry["unit_of_measurement"] = topic_unit
82
- if enum_name and enum_name in enum_lookup:
+ if entity_type != "button" and enum_name and enum_name in enum_lookup:
83
entity_entry["state"] = enum_lookup[enum_name]
84
85
# Add to original entity type
custom_components/victron_mqtt/translations/en.json
@@ -318,11 +318,7 @@
318
},
319
"button": {
320
"platform_device_reboot": {
321
- "name": "Device reboot",
322
- "state": {
323
- "off": "Off",
324
- "on": "On"
325
- }
+ "name": "Device reboot"
326
}
327
328
"device_tracker": {
0 commit comments