Skip to content

HASS Smappee integration fails to set up #7

Description

@vandenberghev

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'

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions