Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Emptying input in virtual sensor keeps it in web frontend #901

Open
cweiske opened this issue Mar 30, 2022 · 0 comments
Open

Emptying input in virtual sensor keeps it in web frontend #901

cweiske opened this issue Mar 30, 2022 · 0 comments

Comments

@cweiske
Copy link
Contributor

cweiske commented Mar 30, 2022

When creating a virtual sensor channel with 2 inputs, and then emptying the second input value, the value is still visible in the web frontend - until the frontend is reloaded.

Steps to reproduce:

  1. Create new channel of type "Verbrauchssensor (virt.)"
  2. Fill values for "Eingang 1" and "Eingang 2" and save
  3. Edit the channel and remove the value for "Eingang 2" and save
  4. A PATCH request is sent, removing the value. The object data returned by the server do not contain "in2" anymore.
  5. The edit window closes automatically
  6. Click the channel's info button. "Eingang 2" is still shown and still has the value that was just deleted. <-- this is a bug
  7. Click the edit button and remove the value again in the "Eingang 2" field. Save.
  8. The PATCH request fails with status code 400: Object { message: "Entity has no property: 'in2'", type: "Exception", code: 0, … } <-- this is a bug
  9. Reload the tab in the browser
  10. Open the channel's info popup: The "Eingang 2" value is gone.

Somehow the web interface keeps the in2 field internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant