Deprecate retrieve_state option

This commit is contained in:
Koen Kanters 2021-02-03 20:55:05 +01:00
parent e31de39c52
commit 836aac46c7
2 changed files with 1 additions and 5 deletions

View File

@ -253,6 +253,7 @@ class EntityPublish extends Extension {
// When reporting is requested for a device (report: true in device-specific settings) we won't
// ever issue a read here, as we assume the device will properly report changes.
// Only do this when the retrieve_state option is enabled for this device.
// retrieve_state == decprecated
if (
resolvedEntity.type === 'device' && result && result.hasOwnProperty('readAfterWriteTime') &&
resolvedEntity.settings.retrieve_state

View File

@ -506,11 +506,6 @@
"title": "Ignore debounce",
"description": "Protects unique payload values of specified payload properties from overriding within debounce time"
},
"retrieve_state": {
"type": "boolean",
"title": "Retrieve State",
"description": "Retrieves the state after setting it (Should only be enabled when the reporting feature does not work for this device)"
},
"optimistic": {
"type": "boolean",
"title": "Optimistic",