Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 159, in _async_setup_platform

await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT)


 "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for

return fut.result()


 "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run

result = self.fn(*self.args, **self.kwargs)


 "/usr/src/homeassistant/homeassistant/components/duke_energy/sensor.py", line 34, in setup_platform

add_entities([DukeEnergyMeter(meter) for meter in duke.get_meters()])


 "/usr/local/lib/python3.7/site-packages/pydukeenergy/api.py", line 52, in get_meters

self._get_meters()


 "/usr/local/lib/python3.7/site-packages/pydukeenergy/api.py", line 160, in _get_meters

meter_data = json.loads(soup.find("duke-dropdown", {"id": "usageAnalysisMeter"})["items"])
TypeError: 'NoneType' object is not subscriptable

Traceback (most recent call last):


 "/usr/local/bin/glances", line 8, in <module>

sys.exit(main())


 "/usr/local/lib/python3.8/dist-packages/glances/__init__.py", line 145, in main

start(config=config, args=args)


 "/usr/local/lib/python3.8/dist-packages/glances/__init__.py", line 110, in start

mode = GlancesMode(config=config, args=args)


 "/usr/local/lib/python3.8/dist-packages/glances/standalone.py", line 78, in __init__

self.stats.update()


 "/usr/local/lib/python3.8/dist-packages/glances/stats.py", line 234, in update

self._plugins[p].update()


 "/usr/local/lib/python3.8/dist-packages/glances/plugins/glances_plugin.py", line 993, in wrapper

ret = fct(self, *args, **kw)


 "/usr/local/lib/python3.8/dist-packages/glances/plugins/glances_plugin.py", line 1003, in wrapper

ret = fct(*args, **kw)


 "/usr/local/lib/python3.8/dist-packages/glances/plugins/glances_smart.py", line 155, in update

stats = get_smart_data()


 "/usr/local/lib/python3.8/dist-packages/glances/plugins/glances_smart.py", line 98, in get_smart_data

devlist = DeviceList()


 "/usr/local/lib/python3.8/dist-packages/pySMART/device_list.py", line 56, in __init__

self._initialize()


 "/usr/local/lib/python3.8/dist-packages/pySMART/device_list.py", line 95, in _initialize

cmd = Popen([SMARTCTL_PATH, '--scan-open'], stdout=PIPE, stderr=PIPE)


 "/usr/lib/python3.8/subprocess.py", line 854, in __init__

self._execute_child(args, executable, preexec_fn, close_fds,


 "/usr/lib/python3.8/subprocess.py", line 1583, in _execute_child

and os.path.dirname(executable)


 "/usr/lib/python3.8/posixpath.py", line 152, in dirname

p = os.fspath(p)
TypeError: expected str, bytes or os.PathLike object, not NoneType
