We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3a388a6 commit cbc0342Copy full SHA for cbc0342
custom_components/extron/extron.py
@@ -69,8 +69,13 @@ async def connect(self):
69
70
async def disconnect(self):
71
self._connected = False
72
- self._writer.close()
73
- await self._writer.wait_closed()
+
+ # Ignore potential connection errors here, we're about to disconnect after all
74
+ try:
75
+ self._writer.close()
76
+ await self._writer.wait_closed()
77
+ except ConnectionError:
78
+ pass
79
80
async def reconnect(self):
81
await self.disconnect()
0 commit comments