Traceback (most recent call last):


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 279, in async_update_ha_state

await self.async_device_update()


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 474, in async_device_update

await self.async_update()


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/components/modbus/sensor.py", line 230, in async_update

self._slave, self._register, self._count


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/components/modbus/__init__.py", line 290, in read_holding_registers

unit, address, count, self._client.protocol.read_holding_registers


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/homeassistant/components/modbus/__init__.py", line 244, in _read

result = await func(address, count, **kwargs)


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/pymodbus/client/common.py", line 114, in read_holding_registers

return self.execute(request)


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/pymodbus/client/asynchronous/asyncio/__init__.py", line 129, in execute

self.write_transport(packet)


 "/var/opt/homeassistant/havenv/lib/python3.7/site-packages/pymodbus/client/asynchronous/asyncio/__init__.py", line 119, in write_transport

return self.transport.write(packet)
AttributeError: 'NoneType' object has no attribute 'write'

Traceback (most recent call last):


 "script.py", line 33, in <module>

yeast_network = nx.read_edgelist(fh)


 "</home/user/.local/lib/python3.6/site-packages/decorator.py:decorator-gen-584>", line 2, in read_edgelist


 "/home/user/.local/lib/python3.6/site-packages/networkx/utils/decorators.py", line 240, in _open_file

result = func_to_be_decorated(*new_args, **kwargs)


 "/home/user/.local/lib/python3.6/site-packages/networkx/readwrite/edgelist.py", line 369, in read_edgelist

data=data)


 "/home/user/.local/lib/python3.6/site-packages/networkx/readwrite/edgelist.py", line 250, in parse_edgelist

for line in lines:


 "/home/user/.local/lib/python3.6/site-packages/networkx/readwrite/edgelist.py", line 366, in <genexpr>

lines = (line.decode(encoding) for line in path)
AttributeError: 'str' object has no attribute 'decode'