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]: error when selecting "Verwarmen" button a 2nd time, when in "Verwarmen"-state #213

Closed
bouwew opened this issue Aug 27, 2022 · 0 comments · Fixed by #214
Closed

[BUG]: error when selecting "Verwarmen" button a 2nd time, when in "Verwarmen"-state #213

bouwew opened this issue Aug 27, 2022 · 0 comments · Fixed by #214
Labels
bug Something isn't working

Comments

@bouwew
Copy link
Contributor

bouwew commented Aug 27, 2022

Describe the bug.

This is when using the Simple Thermostat card. It means that setting the schedule state to off a 2nd time causes the error.

Expected behavior

No error.

What version of Home Assistant Core has the issue?

core-2022.8.7

What type of installation are you running?

Home Assistant Supervised

How and which version of the integration do you have installed?

HACS

What kind of Plugwise device is having issues?

Smile: Adam (including Lisa, Tom, Floor)

What firmware version is your Plugwise product at?

3.6.7

Home Assistant Logging (optional)

Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/plugwise/climate.py:161
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 15:16:04 (3 occurrences)
Last logged: 15:23:15
[140517305040032] list.remove(x): x not in list

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 199, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1713, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1750, in _execute_service
await cast(Callable[[ServiceCall], Awaitable[None]], handler.job.target)(
File "/usr/src/homeassistant/homeassistant/helpers/entity_component.py", line 204, in handle_service
await service.entity_service_call(
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 676, in entity_service_call
future.result() # pop exception if have
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 930, in async_request_call
await coro
File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 713, in _handle_entity_call
await result
File "/config/custom_components/plugwise/util.py", line 30, in handler
return await func(self, *args, **kwargs)
File "/config/custom_components/plugwise/climate.py", line 161, in async_set_hvac_mode
self.device["location"],
File "/usr/local/lib/python3.10/site-packages/plugwise/smile.py", line 582, in set_schedule_state
contexts.remove(subject)
ValueError: list.remove(x): x not in list

Diagnostics information

No response

Additional information

Plugwise-beta v0.27.0a2

@bouwew bouwew added the bug Something isn't working label Aug 27, 2022
@CoMPaTech CoMPaTech linked a pull request Aug 28, 2022 that will close this issue
bouwew added a commit that referenced this issue Aug 28, 2022
bouwew added a commit that referenced this issue Sep 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant