jobvk / Home-Assistant-Windcentrale

Provides Home Assistant sensors for multiple wind turbines from the Windcentrale
https://jobvankoeveringe.com/projects/windcentrale/
Apache License 2.0
14 stars 3 forks source link

Error setting up entry Windcentrale for windcentrale #113

Closed Xorfor closed 1 year ago

Xorfor commented 1 year ago

Checklist

The problem

I just installed the beta version, but got:

Logger: homeassistant.config_entries Source: custom_components/windcentrale/wind.py:26 Integration: Windcentrale (documentation, issues) First occurred: 22:31:05 (1 occurrences) Last logged: 22:31:05

Error setting up entry Windcentrale for windcentrale Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config_entries.py", line 387, in async_setup result = await component.async_setup_entry(hass, self) File "/config/custom_components/windcentrale/init.py", line 19, in async_setup_entry hass.data[DOMAIN][entry.entry_id] = wind.Wind(hass, entry) File "/config/custom_components/windcentrale/wind.py", line 26, in init self.credentialsapi = Credentials(self.hass, self.config_entry.data[CONF_EMAIL], self.config_entry.data[CONF_PASSWORD], self.config_entry.data[CONF_PLATFORM]) KeyError: 'platform'

What is version of Home Assistant Core did you recieve the bug?

2023.5.4

What is version of Home Assistant Supervisor did you recieve the bug?

2023.04.1

What is version of Home Assistant Supervisor?

2023.04.1

What is version of the Windcentrale integration?

0.2.7-Beta

Example Code snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

It looks like it is related to the latest changes in platform webhook. For an other configuration, I needed to add ' allowed_methods:

jobvk commented 1 year ago

Yeah it's a beta. For people using https://winddelen.nl/ look at https://github.com/jobvk/Home-Assistant-Windcentrale/discussions/95.

For you, reinstall the component it should still work or just go back to 0.2.6

Xorfor commented 1 year ago

I did a reinstall and everythings works again. I will ignore the beta versions in the future!