Skip to content

Integration broken since update to v1.2.9 #26

Description

@Jpsy

Version of home_assistant

All latest:
core-2021.4.6 with Home Assistant OS 5.13 on RPi4b 8Gb

Version of the custom_component

v1.2.9 (after upgrade from v1.2.8)

Describe the bug

I had a fully functioning installation of v1.2.8 of the integration with many of the available entities activated.
After the upgrade all entities showed red exclamation marks in Configuration -> Integrations -> DWD....
The entities did not update their values anymore.

I then tried to uninstall and reinstall the custom integration (incl. restarts after each step).
Since then it is not possible to add the integration anymore. See the following screenshots and the debug log below.
I also waited for 12h and tried again to make sure this is not the result of a API issue on DWD side.

Before hitting "Send":
image

After hitting "Send":
image

The same happens when I try to use the geo coords (without station-id).

Debug log

Logger: custom_components.dwd_weather.config_flow
Source: custom_components/dwd_weather/connector.py:61 
Integration: Deutscher Wetterdienst (documentation, issues) 
First occurred: 17:29:48 (1 occurrences) 
Last logged: 17:29:48

Unexpected exception
Traceback (most recent call last):
  File "/config/custom_components/dwd_weather/config_flow.py", line 67, in async_step_user
    info = await validate_input(self.hass, user_input)
  File "/config/custom_components/dwd_weather/config_flow.py", line 45, in validate_input
    await dwd_weather_data.async_update()
  File "/config/custom_components/dwd_weather/connector.py", line 54, in async_update
    return await self._hass.async_add_executor_job(self._update)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/config/custom_components/dwd_weather/connector.py", line 61, in _update
    self.dwd_weather.update()
  File "/usr/local/lib/python3.8/site-packages/simple_dwd_weatherforecast/dwdforecast.py", line 392, in update
    weather_report = download_weather_report(self.region_codes[self.region])
KeyError: 'Saarland'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions