baaym / openhab2-prometheus-exporter

Prometheus Exporter for OpenHAB 2
MIT License
4 stars 7 forks source link

Request the "editable" field to avoid OpenHAB log spam #3

Open dechamps opened 4 years ago

dechamps commented 4 years ago

Due to what looks like a bug in OpenHAB, spurious errors are written to openhab.log every time the exporter makes its REST call:

[WARN ] [thome.io.rest.internal.DTOMapperImpl] - Field 'editable' could not be eliminated: Can not set boolean field org.eclipse.smarthome.io.rest.core.item.EnrichedItemDTO.editable to null value

This commit adds the editable field to the list of requested fields in order to work around the issue.

Background: https://community.openhab.org/t/field-editable-is-required-when-getting-items-on-the-rest-api/65094