Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/components/sma/sensor.py", line 182, in async_sma

values = await sma.read(used_sensors)


 "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 246, in read

payload = {"destDev": [], "keys": list(set([s.key for s in sensors]))}


 "/usr/local/lib/python3.7/site-packages/pysma/__init__.py", line 246, in <listcomp>

payload = {"destDev": [], "keys": list(set([s.key for s in sensors]))}
AttributeError: 'str' object has no attribute 'key'

Traceback (most recent call last):


 "/ws/kartgane-bgl/pyATS/lib/python3.6/site-packages/IPython/core/ultratb.py", line 1169, in get_records

return _fixed_getinnerframes(etb, number_of_lines_of_context, tb_offset)


 "/ws/kartgane-bgl/pyATS/lib/python3.6/site-packages/IPython/core/ultratb.py", line 316, in wrapped

return f(*args, **kwargs)


 "/ws/kartgane-bgl/pyATS/lib/python3.6/site-packages/IPython/core/ultratb.py", line 350, in _fixed_getinnerframes

records = fix_frame_records_filenames(inspect.getinnerframes(etb, context))


 "/auto/pysw/cel7x/python64/3.6.4/lib/python3.6/inspect.py", line 1483, in getinnerframes

frameinfo = (tb.tb_frame,) + getframeinfo(tb, context)


 "/auto/pysw/cel7x/python64/3.6.4/lib/python3.6/inspect.py", line 1441, in getframeinfo

filename = getsourcefile(frame) or getfile(frame)


 "/auto/pysw/cel7x/python64/3.6.4/lib/python3.6/inspect.py", line 693, in getsourcefile

if os.path.exists(filename):
AttributeError: 'str' object has no attribute 'exists'
