Traceback (most recent call last):


 "<...>", line 14, in <module>

s = solve(terms, [a, b, c, d, e, f, g])


 "/usr/lib/python3/dist-packages/sympy/solvers/solvers.py", line 1055, in solve

solution = _solve_system(f, symbols, **flags)


 "/usr/lib/python3/dist-packages/sympy/solvers/solvers.py", line 1708, in _solve_system

res = solve_poly_system(polys, *syms)


 "/usr/lib/python3/dist-packages/sympy/solvers/polysys.py", line 49, in solve_poly_system

return solve_generic(polys, opt)


 "/usr/lib/python3/dist-packages/sympy/solvers/polysys.py", line 228, in solve_generic

result = _solve_reduced_system(polys, opt.gens, entry=True)


 "/usr/lib/python3/dist-packages/sympy/solvers/polysys.py", line 222, in _solve_reduced_system

for solution in _solve_reduced_system(new_system, new_gens):


 "/usr/lib/python3/dist-packages/sympy/solvers/polysys.py", line 184, in _solve_reduced_system

basis = groebner(system, gens, polys=True)


 "/usr/lib/python3/dist-packages/sympy/polys/polytools.py", line 6483, in groebner

return GroebnerBasis(F, *gens, **args)


 "/usr/lib/python3/dist-packages/sympy/polys/polytools.py", line 6523, in __new__

G = _groebner(polys, ring, method=opt.method)


 "/usr/lib/python3/dist-packages/sympy/polys/groebnertools.py", line 45, in groebner

G = _groebner(seq, ring)


 "/usr/lib/python3/dist-packages/sympy/polys/groebnertools.py", line 201, in _buchberger

r = p.rem(f[:i])


 "/usr/lib/python3/dist-packages/sympy/polys/rings.py", line 1446, in rem

raise ZeroDivisionError("polynomial division")
ZeroDivisionError: polynomial division

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'
