Move battery to diagnostic category

This commit is contained in:
Alexander Cato committed 2023-08-05 22:25:19 -04:00
1 parent 0b5e4c773c
commit 9dbf0ab196
1 file changed
+1
+1
View File
@@ -182,6 +182,7 @@ function register_button(button) {
obj.state_topic = buttontopic + "/battery";
obj.unique_id = "Flic_" + button.serialNumber + "_battery";
obj.device_class = "battery";
obj.entity_category = "diagnostic";
//obj.unit_of_measurement = "%"; //It doesn't seem to actually like this.
payload = JSON.stringify(obj, null, 4);