Added new major version of zh_config. Changed main code to support the new version of zh_config

This commit is contained in:
2024-05-29 14:10:21 +03:00
parent 187226cf6d
commit cb30d73628
4 changed files with 353 additions and 317 deletions

View File

@ -144,22 +144,6 @@ char *zh_get_chip_type_value_name(ha_chip_type_t value)
return "";
}
char *zh_get_led_type_value_name(ha_led_type_t value)
{
switch (value)
{
#define DF(_value, _name) \
case _value: \
return _name;
HA_LED_TYPE
#undef DF
break;
default:
break;
}
return "";
}
char *zh_get_sensor_type_value_name(ha_sensor_type_t value)
{
switch (value)