freitdav / BDRthermostatHA

BDR (Baxi, De Dietrich, Remeha) thermostat custom component integration for Home Assistant
GNU General Public License v3.0
48 stars 21 forks source link

AttributeError: 'str' object has no attribute 'get' #3

Closed akofort closed 2 years ago

akofort commented 2 years ago

I'm getting this error after I try to integrate my eTwist. Unfortunately I've no Python skills...

Logger: homeassistant.setup
Source: custom_components/bdr_thermostat/__init__.py:20
Integration: BDR Thermostat ([documentation](https://github.com/freitdav/BDRthermostatHA))
First occurred: 17:47:38 (1 occurrences)
Last logged: 17:47:38
Error during setup of component bdr_thermostat

Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/homeassistant/setup.py", line 235, in _async_setup_component
    result = await task
  File "/config/custom_components/bdr_thermostat/__init__.py", line 20, in async_setup
    if domain_config.get("platform", False) == PLATFORM:
AttributeError: 'str' object has no attribute 'get'
mmoerdijk commented 2 years ago

Please try with this version: https://github.com/freitdav/BDRthermostatHA/pull/6

akofort commented 2 years ago

Looks much better now. Thx a lot !