Skip to content

Commit

Permalink
Persistence page: Remove save checks as core checks data
Browse files Browse the repository at this point in the history
Depends on openhab/openhab-core#3681.

Signed-off-by: Florian Hotze <florianh_dev@icloud.com>
  • Loading branch information
florian-h05 committed Jul 14, 2023
1 parent f784858 commit 9def78f
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -463,17 +463,6 @@ export default {
this.filterTypes.forEach((ft) => {
if (!this.persistence[ft.name]) this.persistence[ft.name] = []
})
// Ensure relative is set on threshold filter, otherwise the save request fails with a 500
this.persistence.thresholdFilters.forEach((f) => {
if (f.relative === undefined) f.relative = false
})
// Ensure inverted is set for equals and include filter, otherwise the save request fails with a 500
this.persistence.equalsFilters.forEach((f) => {
if (f.inverted === undefined) f.inverted = false
})
this.persistence.includeFilters.forEach((f) => {
if (f.inverted === undefined) f.inverted = false
})
// Update the code tab
if (this.persistenceYaml) this.toYaml()
Expand Down

0 comments on commit 9def78f

Please sign in to comment.