Traceback (most recent call last):


 "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 178, 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/src/homeassistant/homeassistant/components/xiaomi_miio/switch.py", line 133, in async_setup_platform

device_info = await hass.async_add_executor_job(miio_device.info)


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

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


 "/usr/local/lib/python3.7/site-packages/miio/device.py", line 182, in info

return DeviceInfo(self.send("miIO.info"))


 "/usr/local/lib/python3.7/site-packages/miio/device.py", line 147, in send

command, parameters, retry_count, extra_parameters=extra_parameters


 "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 150, in send

self.send_handshake()


 "/usr/local/lib/python3.7/site-packages/miio/miioprotocol.py", line 62, in send_handshake

header = m.header.value
AttributeError: 'NoneType' object has no attribute 'header'


Traceback (most recent call last):


 "~/miniconda3/envs/benchmark/lib/python3.6/site-packages/asv/benchmark.py", line 1184, in main_run_server

main_run(run_args)


 "~/miniconda3/envs/benchmark/lib/python3.6/site-packages/asv/benchmark.py", line 1058, in main_run

result = benchmark.do_run()


 "~/miniconda3/envs/benchmark/lib/python3.6/site-packages/asv/benchmark.py", line 537, in do_run

return self.run(*self._current_params)


 "~/miniconda3/envs/benchmark/lib/python3.6/site-packages/asv/benchmark.py", line 631, in run

min_run_count=self.min_run_count)


 "~/miniconda3/envs/benchmark/lib/python3.6/site-packages/asv/benchmark.py", line 663, in benchmark_timing

timing = timer.timeit(number)


 "~/mdanalysis/benchmarks/env/80c5ba7efaa89366b97da3ced85c0c44/lib/python3.6/timeit.py", line 178, in timeit

timing = self.inner(it, self.timer)


 "<timeit-src>", line 6, in inner


 "~/miniconda3/envs/benchmark/lib/python3.6/site-packages/asv/benchmark.py", line 599, in <lambda>

func = lambda: self.func(*param)


 "~/mdanalysis/benchmarks/benchmarks/selections.py", line 76, in time_geometric_selections

MDAnalysis.core.flags['use_periodic_selections'] = periodic_selection[0]

AttributeError: module 'MDAnalysis.core' has no attribute 'flags'
