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

BUG Allowed: min 1 max 3 step 1 #135

Open
andreadegiovine opened this issue May 23, 2024 · 2 comments
Open

BUG Allowed: min 1 max 3 step 1 #135

andreadegiovine opened this issue May 23, 2024 · 2 comments

Comments

@andreadegiovine
Copy link

Hi,
when try to start a program on my HWPD 69AMBC/1-S (washing machine) an error occured:

Allowed: min 1 max 3 step 1

when integration set the defaults params values:

/config/custom_components/hon/device.py::start_command()
...
self.update_command(command, self.attributes["parameters"])
...

The fix is to use a min value instead trow the error here:

/config/custom_components/hon/parameter.py::106

...
raise ValueError(f"Allowed: min {self._min} max {self._max} step {self._step}")
...
to
...
self._value = self._min
...
@gvigroux
Copy link
Owner

just to understand, how do you start the program ? because normally they all have default values that match with what is expected

@gvigroux
Copy link
Owner

I checked and I cannot do the modification because this piece of code is used in a lot of context (like setting the temperature).
I've added one log to understand the value passed.

How do you start the program ?

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