Remove HASP prefix from enitiy names

This commit is contained in:
fvanroie 2021-02-23 23:13:31 +01:00
parent 5ca89f9c84
commit e3156d659d

View File

@ -90,7 +90,7 @@ void mqtt_ha_add_unique_id(JsonDocument& doc, char* item)
{
char buffer[64];
snprintf_P(buffer, sizeof(buffer), PSTR("HASP %s %s"), haspDevice.get_hostname(), item);
snprintf_P(buffer, sizeof(buffer), PSTR("%s %s"), haspDevice.get_hostname(), item);
doc[FPSTR(FP_MQTT_HA_NAME)] = buffer;
snprintf_P(buffer, sizeof(buffer), PSTR("hasp_%s-%s"), HASP_MAC_ADDRESS, item);