smappee / pysmappee

Python wrapper used in the Smappee Home Assistant integration
https://www.home-assistant.io/integrations/smappee
MIT License
2 stars 7 forks source link

HASS Smappee integration fails to set up #7

Open vandenberghev opened 3 years ago

vandenberghev commented 3 years ago

I'm getting errors when adding the Smappee integration to HASS (using the frontend button + Add Integration):

Logger: homeassistant.config_entries
Source: components/smappee/__init__.py:92
Error setting up entry smappee100600xxxx for smappee

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/config_entries.py", line 269, in async_setup
    result = await component.async_setup_entry(hass, self)  # type: ignore
  File "/usr/src/homeassistant/homeassistant/components/smappee/__init__.py", line 92, in async_setup_entry
    await hass.async_add_executor_job(smappee.load_local_service_location)
  File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.8/site-packages/pysmappee/smappee.py", line 39, in load_local_service_location
    sl = SmappeeServiceLocation(device_serial_number=self._serialnumber,
  File "/usr/local/lib/python3.8/site-packages/pysmappee/servicelocation.py", line 74, in __init__
    self.load_configuration()
  File "/usr/local/lib/python3.8/site-packages/pysmappee/servicelocation.py", line 149, in load_configuration
    if ccc.get('type') == '2':
AttributeError: 'str' object has no attribute 'get'