Skip to content

Plugwise Anna broken after upgrade; KeyError: 'setpoint' #34303

@slootjes

Description

@slootjes

The problem

Plugwise Anna integration is no longer working.

Environment

  • Home Assistant Core release with the issue: 0.108.5
  • Last working Home Assistant Core release (if known): 0.106.5
  • Operating environment (Home Assistant/Supervised/Docker/venv): Docker
  • Integration causing this issue: Plugwise Anna
  • Link to integration documentation on our website: https://www.home-assistant.io/integrations/plugwise/

Problem-relevant configuration.yaml

climate:
  - platform: plugwise
    name: Anna
    password: !secret plugwise_anna_password
    host: !secret plugwise_anna_ip

Traceback/Error logs

2020-04-16 18:39:40 ERROR (MainThread) [homeassistant.components.climate] plugwise: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 324, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 476, in async_device_update
    await self.hass.async_add_executor_job(self.update)
  File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/src/homeassistant/homeassistant/components/plugwise/climate.py", line 279, in update
    self._presets = self._api.get_presets(self._domain_objects)
  File "/usr/local/lib/python3.7/site-packages/haanna/haanna.py", line 89, in get_presets
    presets = self.get_preset_dictionary(root, rule_id)
  File "/usr/local/lib/python3.7/site-packages/haanna/haanna.py", line 498, in get_preset_dictionary
    directive.find("then").attrib["setpoint"]
KeyError: 'setpoint'

Additional information

Plugwise Anna version: 4.0.15
Output of /core/rules: https://pastebin.com/YVeyhYWL

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions