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

create_state('running_download_speed', 'running_upload_speed',....) wrong? #205

Open
Feuer-sturm opened this issue Jul 21, 2021 · 1 comment

Comments

@Feuer-sturm
Copy link

Is this line correct?

this.create_state('running_download_speed', 'running_upload_speed', (speed * 125).toFixed(2));

or is it a copy paste error and it should be
this.create_state('running_download_speed', 'running_download_speed', (speed * 125).toFixed(2));

@Pix---
Copy link

Pix--- commented Nov 4, 2021

Hallo,

toFixed() creates a String. So this state is a string but should be a number:

Log fills with
web-speedy.0 | 2021-11-04 10:12:07.090 | info | State value to set for "web-speedy.0.running_upload_speed" has to be type "number" but received type "string"

Gruß
Pix

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

2 participants