aqhome-data: fixed a bug (was creating device instead of value object).

This commit is contained in:
Martin Preuss
2025-11-07 17:03:32 +01:00
parent 5b72686904
commit 660f2502c1

View File

@@ -655,7 +655,7 @@ AQH_VALUE *AqHomeDataServer_GetOrCreateValueForDriverWithTemplate(AQH_OBJECT *o,
v=AQH_Storage_GetValueByNameForSystem(xo->storage, GWEN_Buffer_GetStart(buf));
if (v==NULL) {
if (AQH_Endpoint_GetPermissions(epDriver) & AQH_ENDPOINT_PERMS_ADDVALUE)
_createValue(xo, epDriver, GWEN_Buffer_GetStart(buf), valueTemplate);
_createValue(xo, epDriver, deviceName, valueTemplate);
else {
DBG_ERROR(AQH_LOGDOMAIN, "No permissions to create value \"%s\"", GWEN_Buffer_GetStart(buf));
GWEN_Buffer_free(buf);