Skip to content

Commit

Permalink
[DISC] Additional HA discovery device class (#2097)
Browse files Browse the repository at this point in the history
  • Loading branch information
DigiH authored Nov 3, 2024
1 parent 0441824 commit ba9506c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions main/config_mqttDiscovery.h
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,8 @@ char discovery_prefix[parameters_size + 1] = discovery_Prefix;

// From https://github.com/home-assistant/core/blob/d7ac4bd65379e11461c7ce0893d3533d8d8b8cbf/homeassistant/const.py#L225
// List of classes available in Home Assistant
const char* availableHASSClasses[] = {"battery",
const char* availableHASSClasses[] = {"battery_charging",
"battery",
"carbon_dioxide",
"carbon_monoxide",
"current",
Expand All @@ -211,10 +212,10 @@ const char* availableHASSClasses[] = {"battery",
"pm1",
"pm10",
"pm25",
"power",
"power_factor",
"precipitation",
"power",
"precipitation_intensity",
"precipitation",
"pressure",
"problem",
"restart",
Expand Down

0 comments on commit ba9506c

Please sign in to comment.