async def close(self, event):
        """Close the PLM device connection and don't try to reconnect."""
        _LOGGER.info('Closing connection to Insteon Modem')
        self._closing = True
        self._auto_reconnect = False
        await self.protocol.close()
        if self.protocol.transport:
            self.protocol.transport.close()
        await asyncio.sleep(0, loop=self._loop)
        _LOGGER.info('Insteon Modem connection closed')
async def close ( self , event ) : _LOGGER . info ( 'Closing connection to Insteon Modem' ) self . _closing = True self . _auto_reconnect = False await self . protocol . close ( ) if self . protocol . transport : self . protocol . transport . close ( ) await asyncio . sleep ( 0 , loop = self . _loop ) _LOGGER . info ( 'Insteon Modem connection closed' )
Close the PLM device connection and don't try to reconnect.